|
||||||||||
| 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<EARDeployable>
org.ow2.util.ee.deploy.impl.deployable.EARDeployableImpl
public class EARDeployableImpl
Implementation for an EAR.
| Constructor Summary | |
|---|---|
EARDeployableImpl(IArchive archive)
Defines and create a deployable for the given archive. |
|
| Method Summary | |
|---|---|
void |
addDeployable(IDeployable<?> deployable)
Add the given Deployable to this EAR deployable. |
void |
addDeployable(IDeployable<?> deployable,
EarUnpackOpts earUnpackOpts)
Add the given Deployable to this EAR deployable. |
protected void |
analyzeClassPathModules(IDeployable<?> deployable)
Analyze the classpath of the given deployable. |
protected IDeployable<?> |
changeTypeIfSpecified(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 IDeployable<?> |
checkLibDeployable(IDeployable<?> deployable)
If it is a library, change the type of the deployable. |
protected String |
computePathForModule(IDeployable<?> deployable,
String relativeName,
boolean relative)
Return the name of a module with a path from the root of the EAR. |
List<IDeployable<?>> |
getAllDeployables()
|
URL |
getAltDDURL(IDeployable<?> deployable)
|
List<CARDeployable> |
getCARDeployables()
|
IDeployable<?> |
getDeployable(URL url)
|
IEARInfo |
getEARInfo()
|
List<EJB21Deployable> |
getEJB21Deployables()
|
List<EJB3Deployable> |
getEJB3Deployables()
|
List<EJBDeployable<?>> |
getEJBDeployables()
|
List<LibDeployable> |
getLibDeployables()
|
List<OSGiDeployable> |
getOSGiDeployables()
|
protected String |
getPathOfArelativeModuleFromDeployable(IDeployable<?> deployable,
String relativeName)
Return the path (string form of url) of a module/file in the EAR. |
List<RARDeployable> |
getRARDeployables()
|
protected String |
getRelativeNameFromDeployable(IDeployable<?> deployable)
Return the relative name of the deployable from the EAR deployable. |
protected String |
getRelativeNameOfAModuleFromDeployable(IDeployable<?> deployable,
String relativeName)
Return the name of a module with a path from the root of the EAR. |
List<WARDeployable> |
getWARDeployables()
|
void |
resolveClassPath()
Resolve the ClassPath entries. |
protected void |
setContextRoot(WARDeployable warDeployable)
Set the name of the context-root for the given WAR by checking the EAR information (if any). |
String |
toString()
|
protected IDeployable<?> |
updateDeployableIfBundle(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(IArchive archive)
archive - the given archive.| Method Detail |
|---|
public List<EJBDeployable<?>> getEJBDeployables()
getEJBDeployables in interface EARDeployablepublic List<EJB21Deployable> getEJB21Deployables()
getEJB21Deployables in interface EARDeployablepublic List<EJB3Deployable> getEJB3Deployables()
getEJB3Deployables in interface EARDeployablepublic List<WARDeployable> getWARDeployables()
getWARDeployables in interface EARDeployablepublic List<RARDeployable> getRARDeployables()
getRARDeployables in interface EARDeployablepublic List<CARDeployable> getCARDeployables()
getCARDeployables in interface EARDeployablepublic List<LibDeployable> getLibDeployables()
getLibDeployables in interface EARDeployablepublic List<OSGiDeployable> getOSGiDeployables()
public void addDeployable(IDeployable<?> deployable)
deployable - the given deployable object to add
public void addDeployable(IDeployable<?> deployable,
EarUnpackOpts earUnpackOpts)
deployable - the given deployable object to addearUnpackOpts - options to unpack an earprotected void analyzeClassPathModules(IDeployable<?> deployable)
deployable - the deployable to analyzeprotected IDeployable<?> changeTypeIfSpecified(IDeployable<?> deployable)
deployable - the module of this EAR
protected IDeployable<?> checkLibDeployable(IDeployable<?> deployable)
deployable - the module of this EAR
protected IDeployable<?> updateDeployableIfBundle(IDeployable<?> deployable)
deployable - the module of this EAR
protected String getRelativeNameFromDeployable(IDeployable<?> deployable)
deployable - the module of the EAR
protected String computePathForModule(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(IDeployable<?> deployable,
String relativeName)
deployable - a module of the EARrelativeName - a relative name from the given deployable
protected void setContextRoot(WARDeployable warDeployable)
warDeployable - the given war to analyzepublic void resolveClassPath()
protected String getPathOfArelativeModuleFromDeployable(IDeployable<?> deployable,
String relativeName)
deployable - a module of the EARrelativeName - a relative name from the given deployable
public IEARInfo getEARInfo()
getEARInfo in interface EARDeployablepublic List<IDeployable<?>> getAllDeployables()
getAllDeployables in interface EARDeployablepublic IDeployable<?> getDeployable(URL url)
getDeployable in interface EARDeployableurl - of the wanted deployable
public URL getAltDDURL(IDeployable<?> deployable)
getAltDDURL in interface EARDeployabledeployable - a module of the EAR
public String toString()
toString in class AbsDeployable<EARDeployable>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||