|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.internal.data.EngineRef
public class 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.
| Constructor Summary | |
|---|---|
EngineRef(EngineInfo container,
ApplicationContainer appCtr)
|
|
| Method Summary | |
|---|---|
void |
clean(ExtendedDeploymentContext context)
|
ApplicationConfig |
getApplicationConfig()
|
ApplicationContainer |
getApplicationContainer()
Returns the contaier associated with this application |
EngineInfo |
getContainerInfo()
Returns the container associated with this application |
void |
load(ExtendedDeploymentContext context,
ProgressTracker tracker)
|
void |
save(Engine engine)
Saves its state to the configuration. |
void |
setApplicationConfig(ApplicationConfig config)
|
void |
setApplicationContainer(ApplicationContainer appCtr)
Set the contaier associated with this application |
boolean |
start(ApplicationContext context,
ProgressTracker tracker)
|
boolean |
stop(ApplicationContext context)
Stops a module, meaning that components implemented by this module should not be accessed by external modules |
boolean |
unload(ExtendedDeploymentContext context)
unloads the module from its container. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EngineRef(EngineInfo container,
ApplicationContainer appCtr)
| Method Detail |
|---|
public EngineInfo getContainerInfo()
public void setApplicationContainer(ApplicationContainer appCtr)
appCtr - the container for this applicationpublic ApplicationContainer getApplicationContainer()
public void setApplicationConfig(ApplicationConfig config)
public ApplicationConfig getApplicationConfig()
public void load(ExtendedDeploymentContext context,
ProgressTracker tracker)
public boolean start(ApplicationContext context,
ProgressTracker tracker)
throws Exception
Exceptionpublic boolean unload(ExtendedDeploymentContext context)
context - unloading context
public boolean stop(ApplicationContext context)
context - stopping context
public void clean(ExtendedDeploymentContext context)
public void save(Engine engine)
throws org.jvnet.hk2.config.TransactionFailure,
PropertyVetoException
engine - the engine configuration being persisted
org.jvnet.hk2.config.TransactionFailure
PropertyVetoException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||