FileDocCategorySizeDatePackage
LifecycleModuleConfigFactory.javaAPI DocGlassfish v2 API4682Fri May 04 22:23:20 BST 2007com.sun.enterprise.management.config

LifecycleModuleConfigFactory

public final class LifecycleModuleConfigFactory extends ConfigFactory

Fields Summary
private static final String
CLASSNAME_KEY
private static final String
CLASSPATH_KEY
private static final String
ENABLED_KEY
private static final String
LOAD_ORDER_KEY
private static final String
IS_FAILURE_FATAL_KEY
private static final String
DESCRIPTION_KEY
Constructors Summary
public LifecycleModuleConfigFactory(ConfigFactoryCallback callbacks)

		super( callbacks );
	
Methods Summary
public javax.management.ObjectNamecreate(java.lang.String name, java.lang.String description, java.lang.String classname, java.lang.String classpath, java.lang.String loadOrder, boolean isFailureFatal, boolean enabled, java.util.Map reserved)
Create a new lifecycle module with all attributes specified.

return
the ObjectName of the MBean representing the new module

        final String[] requiredParams =
        {	
            DESCRIPTION_KEY,		(description == null ? "" : description),
            CLASSNAME_KEY,			classname,
            CLASSPATH_KEY,			(classpath == null ? "" : classpath),
            LOAD_ORDER_KEY,			loadOrder,
            IS_FAILURE_FATAL_KEY,	"" + isFailureFatal,
            ENABLED_KEY,	        "" + enabled,
        };

        final Map<String,String> params =
            initParams( name, requiredParams, reserved );

        final ObjectName amxName =  createNamedChild( name, params );
        return( amxName );
	
protected javax.management.ObjectNamecreateOldChildConfig(javax.management.AttributeList translatedAttrs)
The caller is responsible for dealing with any Properties.


		 trace( "LifecycleModuleConfigFactory.createOldChildConfig: creating using: " +
			 stringify( translatedAttrs ) );

		 final ObjectName objectName = 
			  getOldApplicationsConfigMBean().createLifecycleModule(translatedAttrs);
		 
		 return( objectName );
	
private com.sun.enterprise.management.support.oldconfig.OldApplicationsConfigMBeangetOldApplicationsConfigMBean()



		 
	
	
		 return getOldConfigProxies().getOldApplicationsConfigMBean();
	
public voidinternalRemove(javax.management.ObjectName objectName)
Removes an existing lifecycle module.

param
objectName the name of the lifecycle module to be removed.

		final String	name	= Util.getName( objectName );

		getOldApplicationsConfigMBean().removeLifecycleModuleByName( name );