Package org.glassfish.internal.data
Class ModuleInfo
- java.lang.Object
-
- org.glassfish.internal.data.ModuleInfo
-
- Direct Known Subclasses:
ApplicationInfo
public class ModuleInfo extends Object
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
-
-
Constructor Summary
Constructors Constructor Description ModuleInfo(org.glassfish.api.event.Events events, String name, Collection<EngineRef> refs, Properties moduleProps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<EngineRef>_getEngineRefs()voidaddMetaData(Object o)voidclean(ExtendedDeploymentContext context)voidcleanClassLoaders()Set<ClassLoader>getClassLoaders()<T extends org.glassfish.api.container.Container>
EngineRefgetEngineRefForContainer(Class<T> type)Set<EngineRef>getEngineRefs()<T> TgetMetaData(Class<T> c)ObjectgetMetaData(String className)ClassLoadergetModuleClassLoader()PropertiesgetModuleProps()StringgetName()Collection<org.glassfish.api.container.Sniffer>getSniffers()Returns the list of sniffers that participated in loaded this applicationvoidload(ExtendedDeploymentContext context, ProgressTracker tracker)booleanresume(Logger logger)voidsave(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)booleansuspend(Logger logger)voidunload(ExtendedDeploymentContext context)
-
-
-
Constructor Detail
-
ModuleInfo
public ModuleInfo(org.glassfish.api.event.Events events, String name, Collection<EngineRef> refs, Properties moduleProps)
-
-
Method Detail
-
getClassLoaders
public Set<ClassLoader> getClassLoaders()
-
getModuleClassLoader
public ClassLoader getModuleClassLoader()
-
cleanClassLoaders
public void cleanClassLoaders()
-
addMetaData
public void addMetaData(Object o)
-
getMetaData
public <T> T getMetaData(Class<T> c)
-
getName
public String getName()
-
getModuleProps
public Properties getModuleProps()
-
getSniffers
public Collection<org.glassfish.api.container.Sniffer> getSniffers()
Returns the list of sniffers that participated in loaded this application- Returns:
- array of sniffer that loaded the application's module
-
load
public void load(ExtendedDeploymentContext context, ProgressTracker tracker) throws Exception
- Throws:
Exception
-
getEngineRefForContainer
public <T extends org.glassfish.api.container.Container> EngineRef getEngineRefForContainer(Class<T> type)
-
start
public void start(org.glassfish.api.deployment.DeploymentContext context, ProgressTracker tracker) throws Exception- Throws:
Exception
-
stop
public void stop(ExtendedDeploymentContext context, Logger logger)
-
unload
public void unload(ExtendedDeploymentContext context)
-
clean
public void clean(ExtendedDeploymentContext context) throws Exception
- Throws:
Exception
-
suspend
public boolean suspend(Logger logger)
-
resume
public boolean resume(Logger logger)
-
save
public void save(com.sun.enterprise.config.serverbeans.Module module) throws org.jvnet.hk2.config.TransactionFailure, PropertyVetoExceptionSaves 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
-
-