FileDocCategorySizeDatePackage
PersistenceManagerFactoryResourceConfigTest.javaAPI DocGlassfish v2 API4143Fri May 04 22:23:56 BST 2007com.sun.enterprise.management.config

PersistenceManagerFactoryResourceConfigTest

public final class PersistenceManagerFactoryResourceConfigTest extends ResourceConfigTestBase

Fields Summary
Constructors Summary
public PersistenceManagerFactoryResourceConfigTest()

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

	    return dc.createPersistenceManagerFactoryResourceConfig(
	            name, optional );
	
protected final com.sun.appserv.management.config.AMXConfigcreateProgeny(java.lang.String name, java.util.Map options)

	    final PersistenceManagerFactoryResourceConfig	config	=
	    	getDomainConfig().createPersistenceManagerFactoryResourceConfig( name, options);
	    	
		addReference( config );
		
		return( config );
	
public static com.sun.appserv.management.config.PersistenceManagerFactoryResourceConfigensureDefaultInstance(com.sun.appserv.management.config.DomainConfig dc)

	    PersistenceManagerFactoryResourceConfig   result  =
	        dc.getPersistenceManagerFactoryResourceConfigMap().get( getDefaultInstanceName() );
	    
	    if ( result == null )
	    {
	        result  = createInstance( dc,
	            getDefaultInstanceName(),
	            null );
	    }
	    
	    return result;
	
public static java.lang.StringgetDefaultInstanceName()

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

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

		return XTypes.PERSISTENCE_MANAGER_FACTORY_RESOURCE_CONFIG;
	
protected voidremoveProgeny(java.lang.String name)

		getDomainConfig().removePersistenceManagerFactoryResourceConfig( name );