ManagedLifecycleModulepublic class ManagedLifecycleModule extends ConfigMBeanBase implements ConfigAttributeName.LifecycleModuleA 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.
this(); //set description tables
initialize(ObjectNames.kLifecycleModule, new String[]{instanceName, appName});
|
Methods Summary |
---|
public void | disable()Disables this module.
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 void | enable()Enables this module.
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());
}
*/
|
|