|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - is the container type associated with this deployerU - is the ApplicationContainer implementation for this deployerpublic interface Deployer<T extends Container,U extends ApplicationContainer>
A deployer is capable of deploying one type of applications. Deployers shoud use the ArchiveHandler to get a ClassLoader capable of loading classes and resources from the archive type that his being deployed. In all cases the ApplicationContainer subclass must return the class loader associated with the application. In case the application is deployed to more than one container the class loader can be shared and therefore should be retrieved from the ArchiveHandler
| Method Summary | ||
|---|---|---|
void |
clean(DeploymentContext context)
Clean any files and artifacts that were created during the execution of the prepare method. |
|
MetaData |
getMetaData()
Returns the meta data assocated with this Deployer |
|
U |
load(T container,
DeploymentContext context)
Loads a previously prepared application in its execution environment and return a ContractProvider instance that will identify this environment in future communications with the application's container runtime. |
|
|
loadMetaData(java.lang.Class<V> type,
DeploymentContext context)
Loads the meta date associated with the application. |
|
boolean |
prepare(DeploymentContext context)
Prepares the application bits for running in the application server. |
|
void |
unload(U appContainer,
DeploymentContext context)
Unload or stop a previously running application identified with the ContractProvider instance. |
|
| Method Detail |
|---|
MetaData getMetaData()
<V> V loadMetaData(java.lang.Class<V> type,
DeploymentContext context)
type - type of meta-data that this deployer has declared providing.
boolean prepare(DeploymentContext context)
context - of the deployment
U load(T container,
DeploymentContext context)
container - in which the application will residecontext - of the deployment
void unload(U appContainer,
DeploymentContext context)
appContainer - instance to be stoppedcontext - of the undeploymentvoid clean(DeploymentContext context)
context - deployment context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||