FileDocCategorySizeDatePackage
DottedNameResolverForAliases.javaAPI DocGlassfish v2 API4246Fri May 04 22:24:08 BST 2007com.sun.enterprise.admin.dottedname

DottedNameResolverForAliases

public class DottedNameResolverForAliases extends Object implements DottedNameResolver

Fields Summary
final DottedNameQuery
mQuery
final DottedNameServerInfo
mServerInfo
Constructors Summary
public DottedNameResolverForAliases(DottedNameQuery query, DottedNameServerInfo serverInfo)

		mQuery			= query;
		mServerInfo		= serverInfo;
	
Methods Summary
protected java.lang.StringgetUnaliasedName(java.lang.String dottedNameString)

		final DottedName	dn	= DottedNameFactory.getInstance().get( dottedNameString );
		DottedName			actualDN	= dn;
		
		if ( ! DottedName.isWildcardName( dottedNameString ) )
		{
			try
			{
				final String	actualScope	=
					DottedNameAliasSupport.resolveScope( mServerInfo, dn );
				
				if ( ! actualScope.equals( dn.getScope() ) )
				{
					actualDN	= DottedNameFactory.getInstance().get(
						DottedName.toString( dn.getDomain(), actualScope, dn.getParts() ) );
				}
			}
			catch( Exception e )
			{
				DottedNameLogger.logException( e );
			}
		}
		
		return( actualDN.toString() );
	
public javax.management.ObjectNameresolveDottedName(java.lang.String dottedName)

		final String		unaliasedName	= getUnaliasedName( dottedName );
		
		final ObjectName	result	= mQuery.dottedNameToObjectName( unaliasedName );
		
		return( result );