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

JDBCConnectionPoolConfigTest

public final class JDBCConnectionPoolConfigTest extends ConfigMgrTestBase

Fields Summary
private static final String
JDBC_DATASOURCE_CLASSNAME
Constructors Summary
public JDBCConnectionPoolConfigTest()



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

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

	    final JDBCConnectionPoolConfig	config	=
	    	getDomainConfig().createJDBCConnectionPoolConfig( name,
				JDBC_DATASOURCE_CLASSNAME,
				options );
		assert( config != null );
		return( config );
	
public static com.sun.appserv.management.config.JDBCConnectionPoolConfigensureDefaultInstance(com.sun.appserv.management.config.DomainConfig domainConfig)

	    JDBCConnectionPoolConfig   result  =
	        domainConfig.getJDBCConnectionPoolConfigMap().get(
	            getDefaultInstanceName() );
	    
	    if ( result == null )
	    {
	        result  = createInstance( domainConfig,
	            getDefaultInstanceName(), JDBC_DATASOURCE_CLASSNAME, null );
	    }
	    
	    return result;
	
public static java.lang.StringgetDefaultInstanceName()

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

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

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

		getDomainConfig().removeJDBCConnectionPoolConfig( name );