Package org.glassfish.internal.data
Class EngineRef
java.lang.Object
org.glassfish.internal.data.EngineRef
When a module is attached to a LoadedEngine, it creates an Engine reference. Each module of an application can be
loaded in several engines, however, a particular module can only be loaded once in a particular engine.
- Author:
- Jerome Dochez
-
Constructor Summary
ConstructorsConstructorDescriptionEngineRef(EngineInfo<?, ?> container, org.glassfish.api.deployment.ApplicationContainer<?> appCtr) -
Method Summary
Modifier and TypeMethodDescriptionvoidclean(ExtendedDeploymentContext context) com.sun.enterprise.config.serverbeans.ApplicationConfigorg.glassfish.api.deployment.ApplicationContainer<?> Returns the contaier associated with this applicationEngineInfo<?, ?> Returns the container associated with this applicationvoidload(ExtendedDeploymentContext context, ProgressTracker tracker) voidsave(com.sun.enterprise.config.serverbeans.Engine engine) Saves its state to the configuration. this method must be called within a transaction to the configured engine instance.voidsetApplicationConfig(com.sun.enterprise.config.serverbeans.ApplicationConfig config) voidsetApplicationContainer(org.glassfish.api.deployment.ApplicationContainer<?> applicationContainer) Set the contaier associated with this applicationbooleanstart(org.glassfish.api.deployment.ApplicationContext context, ProgressTracker tracker) booleanstop(org.glassfish.api.deployment.ApplicationContext context) Stops a module, meaning that components implemented by this module should not be accessed by external modulestoString()booleanunload(ExtendedDeploymentContext context) unloads the module from its container.
-
Constructor Details
-
EngineRef
public EngineRef(EngineInfo<?, ?> container, org.glassfish.api.deployment.ApplicationContainer<?> appCtr)
-
-
Method Details
-
getContainerInfo
Returns the container associated with this application- Returns:
- the container for this application
-
setApplicationContainer
public void setApplicationContainer(org.glassfish.api.deployment.ApplicationContainer<?> applicationContainer) Set the contaier associated with this application- Parameters:
applicationContainer- the container for this application
-
getApplicationContainer
public org.glassfish.api.deployment.ApplicationContainer<?> getApplicationContainer()Returns the contaier associated with this application- Returns:
- the container for this application
-
setApplicationConfig
public void setApplicationConfig(com.sun.enterprise.config.serverbeans.ApplicationConfig config) -
getApplicationConfig
public com.sun.enterprise.config.serverbeans.ApplicationConfig getApplicationConfig() -
load
-
start
public boolean start(org.glassfish.api.deployment.ApplicationContext context, ProgressTracker tracker) throws Exception - Throws:
Exception
-
unload
unloads the module from its container.- Parameters:
context- unloading context- Returns:
-
stop
public boolean stop(org.glassfish.api.deployment.ApplicationContext context) Stops a module, meaning that components implemented by this module should not be accessed by external modules- Parameters:
context- stopping context- Returns:
-
clean
-
save
public void save(com.sun.enterprise.config.serverbeans.Engine engine) throws org.jvnet.hk2.config.TransactionFailure, PropertyVetoException Saves its state to the configuration. this method must be called within a transaction to the configured engine instance.- Parameters:
engine- the engine configuration being persisted- Throws:
org.jvnet.hk2.config.TransactionFailurePropertyVetoException
-
toString
-