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

CustomResourceConfigTest

public final class CustomResourceConfigTest extends ResourceConfigTestBase

Fields Summary
static final Map
OPTIONAL
private static final String
RES_TYPE
private static final String
FACTORY_CLASS
Constructors Summary
public CustomResourceConfigTest()

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

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

	    final CustomResourceConfig   config =
	        createInstance( getDomainConfig(), name, RES_TYPE, FACTORY_CLASS, options );
	    
		addReference( config );
		
		return config;
	
public static com.sun.appserv.management.config.CustomResourceConfigensureDefaultInstance(com.sun.appserv.management.config.DomainConfig domainConfig)

	    CustomResourceConfig   result  =
	        domainConfig.getCustomResourceConfigMap().get( getDefaultInstanceName() );
	    
	    if ( result == null )
	    {
	        result  = createInstance( domainConfig,
	            getDefaultInstanceName(), RES_TYPE, FACTORY_CLASS, null );
	    }
	    
	    return result;
	
public static java.lang.StringgetDefaultInstanceName()

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

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

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

		return( "CustomResourceConfigTest" );
	
protected voidremoveProgeny(java.lang.String name)

		getDomainConfig().removeCustomResourceConfig( name );