|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.internal.data.ModuleInfo
org.glassfish.internal.data.ApplicationInfo
public class ApplicationInfo
Information about a running application. Applications are composed of modules. Modules run in an individual container.
| Field Summary |
|---|
| Fields inherited from class org.glassfish.internal.data.ModuleInfo |
|---|
engines, events, metaData, name |
| Constructor Summary | |
|---|---|
ApplicationInfo(Events events,
ReadableArchive source,
String name)
Creates a new instance of an ApplicationInfo |
|
| Method Summary | ||
|---|---|---|
void |
add(EngineRef ref)
|
|
void |
addModule(ModuleInfo info)
|
|
void |
addTransientAppMetaData(String metaDataKey,
Object metaDataValue)
|
|
void |
clean(ExtendedDeploymentContext context)
|
|
|
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<Sniffer> |
getSniffers()
Returns the list of sniffers that participated in loaded this application |
|
ReadableArchive |
getSource()
Returns the directory where the application bits are located |
|
protected ExtendedDeploymentContext |
getSubContext(ModuleInfo info,
ExtendedDeploymentContext context)
|
|
|
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(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)
|
|
| Methods inherited from class org.glassfish.internal.data.ModuleInfo |
|---|
_getEngineRefs, addMetaData, cleanClassLoaders, getClassLoaders, getEngineRefForContainer, getEngineRefs, getMetaData, getModuleProps, save, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationInfo(Events events,
ReadableArchive source,
String name)
events - source - the archive for this applicationname - name of the application| Method Detail |
|---|
public void add(EngineRef ref)
public void addTransientAppMetaData(String metaDataKey,
Object metaDataValue)
public <T> T getTransientAppMetaData(String key,
Class<T> metadataType)
public String getName()
getName in class ModuleInfopublic String getLibraries()
public void setLibraries(String libraries)
libraries - the librariespublic void setAppClassLoader(ClassLoader cLoader)
cLoader - application classloaderpublic boolean isJavaEEApp()
public void setIsJavaEEApp(List<EngineInfo> engineInfos)
engineInfos - the engine info listpublic ReadableArchive getSource()
public Collection<ModuleInfo> getModuleInfos()
public Collection<Sniffer> getSniffers()
getSniffers in class ModuleInfopublic <T extends 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 ModuleInfoException
public void start(ExtendedDeploymentContext context,
ProgressTracker tracker)
throws Exception
Exception
public 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 ModuleInfo
public void clean(ExtendedDeploymentContext context)
throws Exception
clean in class ModuleInfoException
public void save(Application app)
throws org.jvnet.hk2.config.TransactionFailure,
PropertyVetoException
app - the application being persisted
org.jvnet.hk2.config.TransactionFailure
PropertyVetoExceptionpublic void addModule(ModuleInfo info)
public boolean isLoaded()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||