public class ApplicationInfo extends ModuleInfo
| Modifier and Type | Field and Description |
|---|---|
static String |
APP_SERVICE_LOCATOR_PREFIX
The prefix that will be given to the service locator, followed by the name of the application
|
engines, events, metaData, name, reversedEngines| Constructor and Description |
|---|
ApplicationInfo(org.glassfish.api.event.Events events,
org.glassfish.api.deployment.archive.ReadableArchive source,
String name)
Creates a new instance of an ApplicationInfo
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(EngineRef ref) |
void |
addModule(ModuleInfo info) |
void |
addTransientAppMetaData(String metaDataKey,
Object metaDataValue) |
void |
clean(ExtendedDeploymentContext context) |
ClassLoader |
getAppClassLoader()
Returns the application classloader for this application.
|
org.glassfish.hk2.api.ServiceLocator |
getAppServiceLocator()
Returns the application scoped ServiceLocator
|
<T extends org.glassfish.api.container.Container> |
getEngineRefsForContainer(Class<T> type) |
String |
getLibraries()
Returns the deployment time libraries for this application
|
Collection<ModuleInfo> |
getModuleInfos()
Returns the modules of this application
|
String |
getName()
Returns the registration name for this application
|
Collection<org.glassfish.api.container.Sniffer> |
getSniffers()
Returns the list of sniffers that participated in loaded this
application
|
org.glassfish.api.deployment.archive.ReadableArchive |
getSource()
Returns the directory where the application bits are located
|
protected ExtendedDeploymentContext |
getSubContext(ModuleInfo info,
ExtendedDeploymentContext context) |
<T> T |
getTransientAppMetaData(String key,
Class<T> metadataType) |
boolean |
isJavaEEApp()
Returns whether this application is a JavaEE application
|
boolean |
isLoaded() |
void |
load(ExtendedDeploymentContext context,
ProgressTracker tracker) |
boolean |
resume(Logger logger) |
void |
save(com.sun.enterprise.config.serverbeans.Application app)
Saves its state to the configuration.
|
void |
setAppClassLoader(ClassLoader cLoader)
Sets the application classloader for this application
|
void |
setIsJavaEEApp(List<EngineInfo> engineInfos)
Sets whether this application is a JavaEE application
|
void |
setLibraries(String libraries)
Sets the deployment time libraries for this application
|
void |
start(ExtendedDeploymentContext context,
ProgressTracker tracker) |
void |
stop(ExtendedDeploymentContext context,
Logger logger) |
boolean |
suspend(Logger logger) |
void |
unload(ExtendedDeploymentContext context) |
_getEngineRefs, addMetaData, cleanClassLoaders, getClassLoaders, getEngineRefForContainer, getEngineRefs, getMetaData, getMetaData, getModuleClassLoader, getModuleProps, save, startpublic static final String APP_SERVICE_LOCATOR_PREFIX
public ApplicationInfo(org.glassfish.api.event.Events events,
org.glassfish.api.deployment.archive.ReadableArchive source,
String name)
events - source - the archive for this applicationname - name of the applicationpublic void add(EngineRef ref)
public void addTransientAppMetaData(String metaDataKey, Object metaDataValue)
public String getName()
getName in class ModuleInfopublic String getLibraries()
public void setLibraries(String libraries)
libraries - the librariespublic ClassLoader getAppClassLoader()
public void setAppClassLoader(ClassLoader cLoader)
cLoader - application classloaderpublic org.glassfish.hk2.api.ServiceLocator getAppServiceLocator()
public boolean isJavaEEApp()
public void setIsJavaEEApp(List<EngineInfo> engineInfos)
engineInfos - the engine info listpublic org.glassfish.api.deployment.archive.ReadableArchive getSource()
public Collection<ModuleInfo> getModuleInfos()
public Collection<org.glassfish.api.container.Sniffer> getSniffers()
getSniffers in class ModuleInfopublic <T extends org.glassfish.api.container.Container> Collection<EngineRef> getEngineRefsForContainer(Class<T> type)
protected ExtendedDeploymentContext getSubContext(ModuleInfo info, ExtendedDeploymentContext context)
public void load(ExtendedDeploymentContext context, ProgressTracker tracker) throws Exception
load in class ModuleInfoExceptionpublic void start(ExtendedDeploymentContext context, ProgressTracker tracker) throws Exception
Exceptionpublic void stop(ExtendedDeploymentContext context, Logger logger)
stop in class ModuleInfopublic void unload(ExtendedDeploymentContext context)
unload in class ModuleInfopublic boolean suspend(Logger logger)
suspend in class ModuleInfopublic boolean resume(Logger logger)
resume in class ModuleInfopublic void clean(ExtendedDeploymentContext context) throws Exception
clean in class ModuleInfoExceptionpublic void save(com.sun.enterprise.config.serverbeans.Application app)
throws org.jvnet.hk2.config.TransactionFailure,
PropertyVetoException
app - the application being persistedorg.jvnet.hk2.config.TransactionFailurePropertyVetoExceptionpublic void addModule(ModuleInfo info)
public boolean isLoaded()
Copyright © 2015. All rights reserved.