Methods Summary |
---|
void | createLeafMBean(com.sun.enterprise.deployment.Descriptor descriptor)Create jsr77 mBeans for ejbs within this module
return;
|
void | createLeafMBeans()Create jsr77 mBeans for ejbs within this module
return;
|
void | createRootMBean()Create jsr77 root mBean
try {
Switch.getSwitch().getManagementObjectManager().registerAppClient(
acDescriptor,
this.configManager.getInstanceEnvironment().getName(),
this.configManager.getLocation(this.id));
} catch (Exception e) {
throw new MBeanException(e);
}
|
void | deleteLeafAndRootMBeans()Delete jsr77 mBeans for the module and its' components
deleteLeafMBeans();
deleteRootMBean();
|
void | deleteLeafMBean(com.sun.enterprise.deployment.Descriptor descriptor)Delete jsr77 mBeans for ejbs within this module
return;
|
void | deleteLeafMBeans()Delete jsr77 mBeans for ejbs within this module
return;
|
void | deleteRootMBean()Delete jsr77 root mBean
Switch.getSwitch().getManagementObjectManager().unregisterAppClient(
acDescriptor,
this.configManager.getInstanceEnvironment().getName());
|
boolean | doLoad(boolean jsr77)Loads the app client.
Although the app client logic is not actually loaded into the app server,
there may be some components interested in the load operation, so notify
them.
notifyAppClientEvent(ApplicationClientEvent.BEFORE_APPLICATION_CLIENT_LOAD);
notifyAppClientEvent(ApplicationClientEvent.AFTER_APPLICATION_CLIENT_LOAD);
return true;
|
private com.sun.enterprise.deployment.ApplicationClientDescriptor | getApplicationClientDescriptor()
ApplicationClientDescriptor appCD = null;
try {
Application app = configManager.getDescriptor(this.id, null, false);
appCD = (ApplicationClientDescriptor) app.getStandaloneBundleDescriptor();
} catch(ConfigException ex) {
_logger.log(Level.WARNING,"Failed to get the ApplicationClientDescriptor");
}
return appCD;
|
protected void | notifyAppClientEvent(int eventType)Notifies interested listeners of the load or unload operation.
ApplicationClientEvent event = new ApplicationClientEvent(eventType,
getApplication(), getClassLoader(), getConfigContext());
appLoaderEventNotifier.notifyListeners(event);
|
private void | setDescriptor()
acDescriptor = getApplicationClientDescriptor();
|
void | setState(int state)Set state for the root mBean
return;
|
boolean | unload(boolean jsr77)Unloads the app client.
Because no code is actually loaded into the server for app clients, there is
none to unload. Still, notify any interested listeners.
notifyAppClientEvent(ApplicationClientEvent.BEFORE_APPLICATION_CLIENT_UNLOAD);
configManager.unregisterDescriptor(id);
notifyAppClientEvent(ApplicationClientEvent.AFTER_APPLICATION_CLIENT_UNLOAD);
return true;
|