|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.util.ee.deploy.impl.deployer.AbsDeployer
org.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. |
protected static String |
INEAR_WORK_WEBAPPS_DIR_SUFFIX
The name of the property used in work directory for EAR webapps (in ear case). |
| Fields inherited from class org.ow2.util.ee.deploy.impl.deployer.AbsDeployer |
|---|
deployedDeployables |
| Constructor Summary | |
|---|---|
EarDeployer()
Build a new instance of the EAR deployer. |
|
| Method Summary | |
|---|---|
protected org.ow2.util.ee.deploy.api.deployable.EARDeployable |
applyGenClientStubIfNeeded(org.ow2.util.ee.deploy.api.deployable.EARDeployable deployable)
Apply GenClientStub of the given archive. |
protected void |
completeWebServicesDeployment(URL earURL,
org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable,
ClassLoader earClassLoader)
Complete the Deployment of the WebServices. |
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. |
protected void |
deployWebServices(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable,
URL earURL,
ClassLoader earClassLoader,
ClassLoader ejbClassLoader,
List<URL> urlsEJB,
List<URL> urlsWAR)
Deploy the Web Services of the given EAR. |
void |
doDeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
Deploy the given deployable. |
void |
doUndeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
Undeploy the given EAR. |
void |
enableGenClientStub()
Enable GenClientStub. |
Map<URL,org.ow2.util.ee.deploy.api.deployable.EARDeployable> |
getEars()
Returns a Map containing all deployed EARs. |
org.ow2.easybeans.api.EZBServer |
getEmbedded()
|
protected List<org.ow2.util.archive.api.IArchive> |
getLibArchives(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable)
Gets Archives of the libraries of this EAR. |
org.ow2.jonas.properties.ServerProperties |
getServerProperties()
Returns the server properties. |
org.ow2.jonas.versioning.VersioningService |
getVersioningService()
|
void |
setAppsClassLoader(ClassLoader appsClassLoader)
Sets the classloader to use for all deployed applications. |
void |
setAppsWorkDirectory(String appsWorkDirectory)
Sets the working directory for Apps. |
void |
setDeployerLog(org.ow2.jonas.lib.work.DeployerLog deployerLog)
Set the DeployerLog of the EarDeployer. |
void |
setEasyBeansService(org.ow2.jonas.ejb3.IEasyBeansService service)
|
void |
setEjb21Service(org.ow2.jonas.ejb2.EJBService ejb21Service)
Sets the EJB 2.1 service. |
void |
setEmbedded(org.ow2.easybeans.api.EZBServer embedded)
Receive Embedded instance for this deployer. |
void |
setJAXRPCService(org.ow2.jonas.ws.jaxrpc.IJAXRPCService jaxrpcService)
Sets the JAX-RPC service. |
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 |
setServerProperties(org.ow2.jonas.properties.ServerProperties serverProperties)
Sets the server properties. |
void |
setServiceManager(org.ow2.jonas.management.ServiceManager serviceManager)
Sets the service manager. |
void |
setVersioningService(org.ow2.jonas.versioning.VersioningService versioningService)
|
void |
setWebappsWorkDirectory(String webappsWorkDirectory)
Sets the working directory for webapps. |
void |
setWebContainerService(org.ow2.jonas.web.JWebContainerService webContainerService)
Sets the WEB container service. |
boolean |
supports(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
Checks if the given deployable is supported by the Deployer. |
protected void |
undeployEJB3FromEAR(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable)
Undeploy EJB3s of an EAR (called by the undeploy method). |
void |
unsetServiceManager()
Sets the service manager to null. |
void |
unsetVersioningService()
Sets the versioning service to null. |
void |
useEJB3ChildClassloader()
Enable the use of a child classloader for EJB3s. |
| Methods inherited from class org.ow2.util.ee.deploy.impl.deployer.AbsDeployer |
|---|
check, deploy, getDeployedDeployables, getFile, getURL, isDeployed, stop, undeploy |
| 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
protected static final String INEAR_WORK_WEBAPPS_DIR_SUFFIX
| 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 enableGenClientStub()
public void useEJB3ChildClassloader()
protected org.ow2.util.ee.deploy.api.deployable.EARDeployable applyGenClientStubIfNeeded(org.ow2.util.ee.deploy.api.deployable.EARDeployable deployable)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
deployable - the deployable to use
org.ow2.util.ee.deploy.api.deployer.DeployerException - if WSGen cannot be applied.
public void doDeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
doDeploy in class org.ow2.util.ee.deploy.impl.deployer.AbsDeployerdeployable - the EAR deployable.
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the EAR is not deployed.
public void doUndeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
doUndeploy in class org.ow2.util.ee.deploy.impl.deployer.AbsDeployerdeployable - 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 boolean supports(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
supports in interface org.ow2.util.ee.deploy.api.deployer.IDeployersupports in class org.ow2.util.ee.deploy.impl.deployer.AbsDeployerdeployable - 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 deployed
protected void deployWebServices(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable,
URL earURL,
ClassLoader earClassLoader,
ClassLoader ejbClassLoader,
List<URL> urlsEJB,
List<URL> urlsWAR)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
earDeployable - the EAR that contains the Web ServicesearURL - the URL of the EARearClassLoader - the classloader of the EARejbClassLoader - the classloader of the EJBsurlsEJB - List of the EJBs of the EARurlsWAR - List of the WARs of the EAR
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the Web Services can't be deployed
protected void completeWebServicesDeployment(URL earURL,
org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable,
ClassLoader earClassLoader)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
earURL - The URL of the EARearDeployable - the deployable of the EARearClassLoader - The classloader of the EAR
org.ow2.util.ee.deploy.api.deployer.DeployerException - Thrown if the Web Services can't be deployedpublic void setJAXRPCService(org.ow2.jonas.ws.jaxrpc.IJAXRPCService jaxrpcService)
jaxrpcService - JAX-RPC servicepublic void setResourceService(org.ow2.jonas.resource.ResourceService resourceService)
resourceService - RAR service.public void setEjb21Service(org.ow2.jonas.ejb2.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.archive.api.IArchive> getLibArchives(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable)
earDeployable - the given EAR deployable.
public org.ow2.jonas.properties.ServerProperties getServerProperties()
public void setServerProperties(org.ow2.jonas.properties.ServerProperties serverProperties)
serverProperties - the given server propertiespublic void setVersioningService(org.ow2.jonas.versioning.VersioningService versioningService)
versioningService - The versioning service to set.public void setEasyBeansService(org.ow2.jonas.ejb3.IEasyBeansService service)
service - the EJB3 Service to be injected.public void unsetVersioningService()
public org.ow2.jonas.versioning.VersioningService getVersioningService()
public void unsetServiceManager()
public void setServiceManager(org.ow2.jonas.management.ServiceManager serviceManager)
public void setDeployerLog(org.ow2.jonas.lib.work.DeployerLog deployerLog)
deployerLog - the DeployerLog to usepublic Map<URL,org.ow2.util.ee.deploy.api.deployable.EARDeployable> getEars()
public void setAppsWorkDirectory(String appsWorkDirectory)
appsWorkDirectory - the given directorypublic void setWebappsWorkDirectory(String webappsWorkDirectory)
webappsWorkDirectory - the given directory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||