Fields Summary |
---|
private static ApplicationManager | applicationManagerJ2EE Application Manager |
private static StandAloneConnectorModulesManager | saConnectorManagerStand alone Connector module manager |
private static DummyWebModuleManager | saWebManagerStand alone Web module manager |
private static StandAloneEJBModulesManager | saEJBManagerStand alone Ejb module manager |
private static StandAloneAppClientModulesManager | saACManagerStand alone Application Client module manager |
private static com.sun.enterprise.instance.InstanceEnvironment | iEnvInstance environment of current server context |
private static ClassLoader | sharedCLshared class loader of current server context |
private static final Logger | _loggerlogger to log core messages |
Methods Summary |
---|
public static synchronized ApplicationManager | getApplicationManager()This method gets the Application Manager for this server context
if(applicationManager == null) {
AppsManager appsManager =
InstanceFactory.createAppsManager(getInstanceEnvironment(), false);
try {
if (appsManager.isByteCodePreprocessingEnabled()){
// Initialize the preprocessor. If for some reason there's a
// problem, the preprocessor will be disabled before we attempt
// to use it.
PreprocessorUtil.init
(appsManager.getBytecodeProcessorClassNames());
}
} catch (ConfigException confEx) {
_logger.log(Level.WARNING,
"bytecodepreprocessor.config_ex",
confEx);
_logger.log(Level.WARNING,
"bytecodepreprocessor.disabled");
}
// manager for the j2ee applications
applicationManager = new ApplicationManager(appsManager,getSharedClassLoader());
}
return applicationManager;
|
private static synchronized com.sun.enterprise.instance.InstanceEnvironment | getInstanceEnvironment()Returns the instance environment of this server's runtime
if(iEnv == null) {
ServerContext sc = ApplicationServer.getServerContext();
iEnv = sc.getInstanceEnvironment();
}
return iEnv;
|
public static synchronized StandAloneAppClientModulesManager | getSAACModulesManager()This method returns the stand alone application client module manager
if(saACManager == null) {
// config manager for stand alone application client modules
AppclientModulesManager acModuleManager =
InstanceFactory.createAppclientModulesManager(getInstanceEnvironment());
// manager for stand alone application client modules
saACManager = new StandAloneAppClientModulesManager(
acModuleManager, getSharedClassLoader());
}
return saACManager;
|
public static synchronized StandAloneConnectorModulesManager | getSAConnectorModulesManager()This method returns the stand alone connector module manager
if(saConnectorManager == null) {
// config manager for stand alone connector modules
ConnectorModulesManager connModuleManager =
InstanceFactory.createConnectorModuleManager(getInstanceEnvironment(), false);
// manager for stand alone connector modules
saConnectorManager = new StandAloneConnectorModulesManager(
connModuleManager, getSharedClassLoader());
}
return saConnectorManager;
|
public static synchronized StandAloneEJBModulesManager | getSAEJBModulesManager()This method returns the stand alone web modules manager
if(saEJBManager == null) {
// config manager for stand alone ejb modules
EjbModulesManager ejbModuleManager =
InstanceFactory.createEjbModuleManager(getInstanceEnvironment(), false);
// manager for stand alone ejb modules
saEJBManager = new StandAloneEJBModulesManager(ejbModuleManager, getSharedClassLoader());
}
return saEJBManager;
|
public static synchronized DummyWebModuleManager | getSAWebModulesManager()This method returns the *dummy* stand alone web modules manager. The returned manager
does not anything but sending an event to ondemand initialization framework.
if(saWebManager == null) {
// config manager for stand alone web modules
WebModulesManager webModuleManager = new WebModulesManager(getInstanceEnvironment());
saWebManager = new WebModuleDeployEventListener(webModuleManager, getSharedClassLoader());
}
return saWebManager;
|
private static synchronized java.lang.ClassLoader | getSharedClassLoader()Returns the shared class loader
if(sharedCL == null) {
ServerContext sc = ApplicationServer.getServerContext();
sharedCL = sc.getSharedClassLoader();
}
return sharedCL;
|