FileDocCategorySizeDatePackage
AdminObjectResourceConfigTest.javaAPI DocGlassfish v2 API4442Fri May 04 22:23:54 BST 2007com.sun.enterprise.management.config

AdminObjectResourceConfigTest

public final class AdminObjectResourceConfigTest extends ResourceConfigTestBase

Fields Summary
private static final String
ADM_OBJ_RES_TYPE
private static final String
ADM_OBJ_RES_ADAPTER
Constructors Summary
public AdminObjectResourceConfigTest()



     
    
	    if ( checkNotOffline( "ensureDefaultInstance" ) )
	    {
	        ensureDefaultInstance( getDomainConfig() );
	    }
    
Methods Summary
public static com.sun.appserv.management.config.AdminObjectResourceConfigcreateInstance(com.sun.appserv.management.config.DomainConfig domainConfig, java.lang.String name, java.lang.String resType, java.lang.String resAdapter, java.util.Map optional)

	    return domainConfig.createAdminObjectResourceConfig( name,
	        resType, resAdapter, optional );
	
protected final com.sun.appserv.management.config.AMXConfigcreateProgeny(java.lang.String name, java.util.Map options)

		final AdminObjectResourceConfig	config	= getDomainConfig().createAdminObjectResourceConfig(
			name,
			ADM_OBJ_RES_TYPE,
			ADM_OBJ_RES_ADAPTER,
			options);
			    
		addReference( config );

		return( config );
	
public static com.sun.appserv.management.config.AdminObjectResourceConfigensureDefaultInstance(com.sun.appserv.management.config.DomainConfig domainConfig)

	    AdminObjectResourceConfig   result  =
	        domainConfig.getAdminObjectResourceConfigMap().get( getDefaultInstanceName() );
	    
	    if ( result == null )
	    {
	        result  = createInstance( 
	            domainConfig,
	            getDefaultInstanceName(),
	            ADM_OBJ_RES_TYPE,
	            ADM_OBJ_RES_ADAPTER,
	            null );
	    }
	    
	    return result;
	
public static java.lang.StringgetDefaultInstanceName()

        return getDefaultInstanceName( "AdminObjectResourceConfig" );
    
protected com.sun.appserv.management.base.ContainergetProgenyContainer()

		return getDomainConfig();
	
protected java.lang.StringgetProgenyJ2EEType()

		return XTypes.ADMIN_OBJECT_RESOURCE_CONFIG;
	
protected java.lang.StringgetProgenyTestName()

		return( "jndi/AdminObjectResourceConfigMgrTest" );
	
protected voidremoveProgeny(java.lang.String name)

		getDomainConfig().removeAdminObjectResourceConfig( name );