FileDocCategorySizeDatePackage
ManagedLifecycleModule.javaAPI DocGlassfish v2 API5614Fri May 04 22:33:56 BST 2007com.sun.enterprise.admin.server.core.mbean.config

ManagedLifecycleModule

public class ManagedLifecycleModule extends ConfigMBeanBase implements ConfigAttributeName.LifecycleModule
A class that represents LifecycleModule. It extends ConfigMBeanBase class which provides get/set attribute(s) and getMBeanInfo services according to text descriptions. ObjectName of this MBean is: ias:type=J2EEApplication, name=, InstanceName=

Fields Summary
private static final String[]
MAPLIST
private static final String[]
ATTRIBUTES
private static final String[]
OPERATIONS
Constructors Summary
public ManagedLifecycleModule()
Default constructor sets MBean description tables

  


                     
       
    
        this.setDescriptions(MAPLIST, ATTRIBUTES, OPERATIONS);
    
public ManagedLifecycleModule(String instanceName, String appName)
Constructs Config MBean for lifecycle module.

param
instanceName The server instance name.
param
appName

        this(); //set description tables
        initialize(ObjectNames.kLifecycleModule, new String[]{instanceName, appName});

    
Methods Summary
public voiddisable()
Disables this module.

throws
Exception if there is some error during disabling.

            return; //FIXME: for RI only
/*	    try{
            this.setAttribute(new Attribute(kEnabled, new Boolean(false)));
            super.getConfigContext().flush();
		}catch(Exception e){
			throw new AFException(e.getMessage());
		}
*/
    
public voidenable()
Enables this module.

throws
Exception if there is some error during enablement.

        return; //FIXME: for RI only
/*	    try{
            this.setAttribute(new Attribute(kEnabled, new Boolean(true)));
            super.getConfigContext().flush();
		}catch(Exception e){
			throw new AFException(e.getMessage());
		}
*/