Package org.glassfish.internal.data
Class ModuleInfo
java.lang.Object
org.glassfish.internal.data.ModuleInfo
- Direct Known Subclasses:
ApplicationInfo
Each module of an application has an associated module info instance keeping the list of engines in which that module
is loaded.
- Author:
- Jerome Dochez
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModuleInfo(org.glassfish.api.event.Events events, String name, Collection<EngineRef> engineRefs, Properties moduleProps) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclean(ExtendedDeploymentContext context) void<T extends org.glassfish.api.container.Container>
EngineRefgetEngineRefForContainer(Class<T> type) <T> TgetMetaData(Class<T> c) getMetaData(String className) getName()Collection<org.glassfish.api.container.Sniffer>Returns the list of sniffers that participated in loaded this applicationvoidload(ExtendedDeploymentContext context, ProgressTracker tracker) booleanvoidsave(com.sun.enterprise.config.serverbeans.Module module) Saves its state to the configuration.voidstart(org.glassfish.api.deployment.DeploymentContext context, ProgressTracker tracker) voidstop(ExtendedDeploymentContext context, Logger logger) booleanvoidunload(ExtendedDeploymentContext context)
-
Field Details
-
engines
-
reversedEngines
-
metaData
-
name
-
events
protected final org.glassfish.api.event.Events events
-
-
Constructor Details
-
ModuleInfo
public ModuleInfo(org.glassfish.api.event.Events events, String name, Collection<EngineRef> engineRefs, Properties moduleProps)
-
-
Method Details
-
getEngineRefs
-
_getEngineRefs
-
getClassLoaders
-
getModuleClassLoader
-
cleanClassLoaders
public void cleanClassLoaders() -
addMetaData
-
getMetaData
-
getMetaData
-
getName
-
getModuleProps
-
getSniffers
Returns the list of sniffers that participated in loaded this application- Returns:
- array of sniffer that loaded the application's module
-
load
- Throws:
Exception
-
getEngineRefForContainer
-
start
public void start(org.glassfish.api.deployment.DeploymentContext context, ProgressTracker tracker) throws Exception - Throws:
Exception
-
stop
-
unload
-
clean
- Throws:
Exception
-
suspend
-
resume
-
save
public void save(com.sun.enterprise.config.serverbeans.Module module) throws org.jvnet.hk2.config.TransactionFailure, PropertyVetoException Saves its state to the configuration. this method must be called within a transaction to the configured module instance.- Parameters:
module- the module being persisted- Throws:
org.jvnet.hk2.config.TransactionFailurePropertyVetoException
-