|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.ear.internal.EarDeployer
public class EarDeployer
This deployer will deploy EAR by using the other services.
| Field Summary | |
|---|---|
static String |
DEFAULT_FOLDER
Folder to create in tmp folder. |
| Constructor Summary | |
|---|---|
EarDeployer()
Build a new instance of the EAR deployer. |
|
| Method Summary | |
|---|---|
protected void |
applyWSGenIfNeeded(org.ow2.util.ee.deploy.api.archive.IArchive archive)
Apply WSGen of the given archive. |
void |
deploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
Deploy a deployable. |
protected void |
deployEAR(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable)
Deploy the given deployable. |
protected void |
deployEJB21s(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable,
URL earURL,
URLClassLoader earClassLoader,
ClassLoader ejbClassLoader,
String[] roleNames)
Deploy the EJB 2.1 of the given EAR. |
protected void |
deployRARs(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable,
URL earURL,
ClassLoader earClassLoader)
Deploy the RARs of the given EAR. |
protected void |
deployWARs(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable,
URL earURL,
ClassLoader earClassLoader,
ClassLoader parentClassLoader,
org.ow2.easybeans.deployment.api.EZBInjectionHolder ejbInjectionHolder)
Deploy the WAR files present in the given EAR. |
org.ow2.easybeans.api.EZBServer |
getEmbedded()
|
protected List<org.ow2.util.ee.deploy.api.archive.IArchive> |
getLibArchives(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable)
Gets Archives of the libraries of this EAR. |
protected org.ow2.easybeans.persistence.api.EZBPersistenceUnitManager |
getPersistenceUnitManager(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable,
ClassLoader appClassLoader)
Gets the persistence unit manager for the given EAR and classloader. |
boolean |
isDeployed(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
Checks if the given deployable is deployed or not. |
void |
setAppsClassLoader(ClassLoader appsClassLoader)
Sets the classloader to use for all deployed applications. |
void |
setEjb21Service(org.ow2.jonas.ejb.EJBService ejb21Service)
Sets the EJB 2.1 service. |
void |
setEmbedded(org.ow2.easybeans.api.EZBServer embedded)
Receive Embedded instance for this deployer. |
void |
setJMXService(org.ow2.jonas.jmx.JmxService jmxService)
Sets the JMX service. |
void |
setResourceService(org.ow2.jonas.resource.ResourceService resourceService)
Sets the RAR service. |
void |
setWebContainerService(org.ow2.jonas.web.JWebContainerService webContainerService)
Sets the WEB container service. |
void |
setWsService(org.ow2.jonas.ws.WebServicesService wsService)
Sets the WS service. |
boolean |
supports(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
Checks if the given deployable is supported by the Deployer. |
void |
undeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
Undeploy the given deployable. |
protected void |
undeployEAR(org.ow2.util.ee.deploy.api.deployable.EARDeployable tmpEARDeployable)
Undeploy the given EAR. |
protected void |
undeployEJB3FromEAR(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable)
Undeploy EJB3s of an EAR (called by the undeploy method). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_FOLDER
| Constructor Detail |
|---|
public EarDeployer()
| Method Detail |
|---|
public org.ow2.easybeans.api.EZBServer getEmbedded()
public void setEmbedded(org.ow2.easybeans.api.EZBServer embedded)
embedded - the given instance of the embedded server.
public void deploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
deploy in interface org.ow2.util.ee.deploy.api.deployer.IDeployerdeployable - a given deployable
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the deployment is not done.
protected void applyWSGenIfNeeded(org.ow2.util.ee.deploy.api.archive.IArchive archive)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
archive - the archive to check
org.ow2.util.ee.deploy.api.deployer.DeployerException - if WSGen cannot be applied.
protected void deployEAR(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
earDeployable - the EAR deployable.
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the EAR is not deployed.
protected org.ow2.easybeans.persistence.api.EZBPersistenceUnitManager getPersistenceUnitManager(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable,
ClassLoader appClassLoader)
earDeployable - the ear deployableappClassLoader - the classloader used as deployable
protected void undeployEAR(org.ow2.util.ee.deploy.api.deployable.EARDeployable tmpEARDeployable)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
tmpEARDeployable - the deployable to remove.
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the EAR is not undeployed.
protected void undeployEJB3FromEAR(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
earDeployable - a given EAR deployable
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the deployment is not done.
public void undeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
undeploy in interface org.ow2.util.ee.deploy.api.deployer.IDeployerdeployable - a given deployable to undeploy
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the undeploy operation fails.
public boolean isDeployed(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
isDeployed in interface org.ow2.util.ee.deploy.api.deployer.IDeployerdeployable - test if a given deployable is already deployed.
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the undeploy operation fails.public boolean supports(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
supports in interface org.ow2.util.ee.deploy.api.deployer.IDeployerdeployable - the deployable to be checked
protected void deployWARs(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable,
URL earURL,
ClassLoader earClassLoader,
ClassLoader parentClassLoader,
org.ow2.easybeans.deployment.api.EZBInjectionHolder ejbInjectionHolder)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
earDeployable - the EAR containing the WARsearURL - the EAR URLearClassLoader - the EAR classloaderparentClassLoader - the parent classloader (EJB) to useejbInjectionHolder - the given ejb injection holder (including persistence unit manager, etc).
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the wars are not deployed.
protected void deployEJB21s(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable,
URL earURL,
URLClassLoader earClassLoader,
ClassLoader ejbClassLoader,
String[] roleNames)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
earDeployable - the EAR that contains the EJB filesearURL - the URL of the EARearClassLoader - the classloader of the EARejbClassLoader - the given EJB ClassLoaderroleNames - the name of the roles to use for security
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the EJB 2.1 filse can't be deployed
protected void deployRARs(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable,
URL earURL,
ClassLoader earClassLoader)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
earDeployable - the EAR that contains the war filesearURL - the URL of the EARearClassLoader - the classloader of the EAR
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the RARs file can't be deployedpublic void setWsService(org.ow2.jonas.ws.WebServicesService wsService)
wsService - WS servicepublic void setResourceService(org.ow2.jonas.resource.ResourceService resourceService)
resourceService - RAR service.public void setEjb21Service(org.ow2.jonas.ejb.EJBService ejb21Service)
ejb21Service - the EJB 2.1 service.public void setJMXService(org.ow2.jonas.jmx.JmxService jmxService)
jmxService - the JMX service.public void setWebContainerService(org.ow2.jonas.web.JWebContainerService webContainerService)
webContainerService - the web container service.public void setAppsClassLoader(ClassLoader appsClassLoader)
appsClassLoader - the given classloader.protected List<org.ow2.util.ee.deploy.api.archive.IArchive> getLibArchives(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable)
earDeployable - the given EAR deployable.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||