Methods Summary |
---|
private void | _testGetAll()
final Map<String,LifecycleModuleConfig> all = getLifecycleModuleConfigs();
assert( all != null );
|
public static com.sun.appserv.management.config.LifecycleModuleConfig | createInstance(com.sun.appserv.management.config.DomainConfig domainConfig, java.lang.String name, java.lang.String classname, int loadOrder)
final boolean isFailureFatal = false;
final boolean enabled = true;
final String classpath = "/test";
final String description = null;
final LifecycleModuleConfig life =
domainConfig.createLifecycleModuleConfig( name,
description,
classname,
classpath,
"" + loadOrder,
isFailureFatal,
enabled,
null );
return life;
|
public static com.sun.appserv.management.config.LifecycleModuleConfig | ensureDefaultInstance(com.sun.appserv.management.config.DomainConfig domainConfig)
LifecycleModuleConfig result =
domainConfig.getLifecycleModuleConfigMap().get( getDefaultInstanceName() );
if ( result == null )
{
result = createInstance(
domainConfig,
getDefaultInstanceName(),
IMPL_CLASSNAME,
1 );
}
return result;
|
public static java.lang.String | getDefaultInstanceName()
return getDefaultInstanceName( "LifecycleModuleConfig" );
|
public java.util.Map | getLifecycleModuleConfigs()
return getDomainConfig().getLifecycleModuleConfigMap();
|
private void | sanityCheck(com.sun.appserv.management.config.LifecycleModuleConfig config)
config.setClassname( config.getClassname() );
final String classpath = config.getClasspath();
config.setClasspath( classpath == null ? "" : classpath );
config.setLoadOrder( config.getLoadOrder() );
config.setIsFailureFatal( config.getIsFailureFatal() );
config.setEnabled( config.getEnabled() );
|
public synchronized void | testAttrs()
ensureDefaultInstance( getDomainConfig() );
final Map<String,LifecycleModuleConfig> all = getLifecycleModuleConfigs();
if ( all.size() != 0 )
{
for( final LifecycleModuleConfig config : all.values() )
{
sanityCheck( config );
}
}
else
{
warning( "LifecycleModuleConfigTest: No LifecycleModuleConfig to test" );
}
|
public synchronized void | testCreateRemove()
final DomainConfig domainConfig = getDomainConfig();
|