|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.util.ee.deploy.impl.deployable.AbsDeployable<org.ow2.util.ee.deploy.api.deployable.EARDeployable>
org.ow2.util.ee.deploy.impl.deployable.EARDeployableImpl
public class EARDeployableImpl
Implementation for an EAR.
| Constructor Summary | |
|---|---|
EARDeployableImpl(org.ow2.util.archive.api.IArchive archive)
Defines and create a deployable for the given archive. |
|
| Method Summary | |
|---|---|
void |
addDeployable(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
Add the given Deployable to this EAR deployable. |
void |
addDeployable(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable,
EarUnpackOpts earUnpackOpts)
Add the given Deployable to this EAR deployable. |
protected void |
analyzeClassPathModules(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
Analyze the classpath of the given deployable. |
protected org.ow2.util.ee.deploy.api.deployable.IDeployable<?> |
changeTypeIfSpecified(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
If there is an XML file, ignore the type that we want to add, use the type specified by the XML file. |
protected org.ow2.util.ee.deploy.api.deployable.IDeployable<?> |
checkLibDeployable(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
If it is a library, change the type of the deployable. |
protected String |
computePathForModule(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable,
String relativeName,
boolean relative)
Return the name of a module with a path from the root of the EAR. |
List<org.ow2.util.ee.deploy.api.deployable.IDeployable<?>> |
getAllDeployables()
|
URL |
getAltDDURL(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
|
List<org.ow2.util.ee.deploy.api.deployable.CARDeployable> |
getCARDeployables()
|
org.ow2.util.ee.deploy.api.deployable.IDeployable<?> |
getDeployable(URL url)
|
org.ow2.util.ee.deploy.api.deployment.ear.IEARInfo |
getEARInfo()
|
List<org.ow2.util.ee.deploy.api.deployable.EJB21Deployable> |
getEJB21Deployables()
|
List<org.ow2.util.ee.deploy.api.deployable.EJB3Deployable> |
getEJB3Deployables()
|
List<org.ow2.util.ee.deploy.api.deployable.EJBDeployable<?>> |
getEJBDeployables()
|
List<org.ow2.util.ee.deploy.api.deployable.LibDeployable> |
getLibDeployables()
|
List<org.ow2.util.ee.deploy.api.deployable.OSGiDeployable> |
getOSGiDeployables()
|
protected String |
getPathOfArelativeModuleFromDeployable(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable,
String relativeName)
Return the path (string form of url) of a module/file in the EAR. |
List<org.ow2.util.ee.deploy.api.deployable.RARDeployable> |
getRARDeployables()
|
protected String |
getRelativeNameFromDeployable(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
Return the relative name of the deployable from the EAR deployable. |
protected String |
getRelativeNameOfAModuleFromDeployable(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable,
String relativeName)
Return the name of a module with a path from the root of the EAR. |
List<org.ow2.util.ee.deploy.api.deployable.WARDeployable> |
getWARDeployables()
|
void |
resolveClassPath()
Resolve the ClassPath entries. |
protected void |
setContextRoot(org.ow2.util.ee.deploy.api.deployable.WARDeployable warDeployable)
Set the name of the context-root for the given WAR by checking the EAR information (if any). |
String |
toString()
|
protected org.ow2.util.ee.deploy.api.deployable.IDeployable<?> |
updateDeployableIfBundle(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
If it is a bundle (in the bundle/ directory), change the type of the deployable. |
| Methods inherited from class org.ow2.util.ee.deploy.impl.deployable.AbsDeployable |
|---|
addExtension, equals, getArchive, getExtension, getModuleName, getOriginalDeployable, getShortName, getUnpackedDeployable, setOriginalDeployable, setUnpackedDeployable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ow2.util.ee.deploy.api.deployable.IDeployable |
|---|
addExtension, getArchive, getExtension, getModuleName, getOriginalDeployable, getShortName, getUnpackedDeployable, setOriginalDeployable, setUnpackedDeployable |
| Constructor Detail |
|---|
public EARDeployableImpl(org.ow2.util.archive.api.IArchive archive)
archive - the given archive.| Method Detail |
|---|
public List<org.ow2.util.ee.deploy.api.deployable.EJBDeployable<?>> getEJBDeployables()
getEJBDeployables in interface org.ow2.util.ee.deploy.api.deployable.EARDeployablepublic List<org.ow2.util.ee.deploy.api.deployable.EJB21Deployable> getEJB21Deployables()
getEJB21Deployables in interface org.ow2.util.ee.deploy.api.deployable.EARDeployablepublic List<org.ow2.util.ee.deploy.api.deployable.EJB3Deployable> getEJB3Deployables()
getEJB3Deployables in interface org.ow2.util.ee.deploy.api.deployable.EARDeployablepublic List<org.ow2.util.ee.deploy.api.deployable.WARDeployable> getWARDeployables()
getWARDeployables in interface org.ow2.util.ee.deploy.api.deployable.EARDeployablepublic List<org.ow2.util.ee.deploy.api.deployable.RARDeployable> getRARDeployables()
getRARDeployables in interface org.ow2.util.ee.deploy.api.deployable.EARDeployablepublic List<org.ow2.util.ee.deploy.api.deployable.CARDeployable> getCARDeployables()
getCARDeployables in interface org.ow2.util.ee.deploy.api.deployable.EARDeployablepublic List<org.ow2.util.ee.deploy.api.deployable.LibDeployable> getLibDeployables()
getLibDeployables in interface org.ow2.util.ee.deploy.api.deployable.EARDeployablepublic List<org.ow2.util.ee.deploy.api.deployable.OSGiDeployable> getOSGiDeployables()
public void addDeployable(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
deployable - the given deployable object to add
public void addDeployable(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable,
EarUnpackOpts earUnpackOpts)
deployable - the given deployable object to addearUnpackOpts - options to unpack an earprotected void analyzeClassPathModules(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
deployable - the deployable to analyzeprotected org.ow2.util.ee.deploy.api.deployable.IDeployable<?> changeTypeIfSpecified(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
deployable - the module of this EAR
protected org.ow2.util.ee.deploy.api.deployable.IDeployable<?> checkLibDeployable(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
deployable - the module of this EAR
protected org.ow2.util.ee.deploy.api.deployable.IDeployable<?> updateDeployableIfBundle(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
deployable - the module of this EAR
protected String getRelativeNameFromDeployable(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
deployable - the module of the EAR
protected String computePathForModule(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable,
String relativeName,
boolean relative)
deployable - a module of the EARrelativeName - a relative name from the given deployablerelative - true for returning a relative path false otherwise
protected String getRelativeNameOfAModuleFromDeployable(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable,
String relativeName)
deployable - a module of the EARrelativeName - a relative name from the given deployable
protected void setContextRoot(org.ow2.util.ee.deploy.api.deployable.WARDeployable warDeployable)
warDeployable - the given war to analyzepublic void resolveClassPath()
protected String getPathOfArelativeModuleFromDeployable(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable,
String relativeName)
deployable - a module of the EARrelativeName - a relative name from the given deployable
public org.ow2.util.ee.deploy.api.deployment.ear.IEARInfo getEARInfo()
getEARInfo in interface org.ow2.util.ee.deploy.api.deployable.EARDeployablepublic List<org.ow2.util.ee.deploy.api.deployable.IDeployable<?>> getAllDeployables()
getAllDeployables in interface org.ow2.util.ee.deploy.api.deployable.EARDeployablepublic org.ow2.util.ee.deploy.api.deployable.IDeployable<?> getDeployable(URL url)
getDeployable in interface org.ow2.util.ee.deploy.api.deployable.EARDeployableurl - of the wanted deployable
public URL getAltDDURL(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
getAltDDURL in interface org.ow2.util.ee.deploy.api.deployable.EARDeployabledeployable - a module of the EAR
public String toString()
toString in class AbsDeployable<org.ow2.util.ee.deploy.api.deployable.EARDeployable>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||