|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.deployable.DeployableHelper
public final class DeployableHelper
Analyze an archive and build the associated Deployable object.
For an .ear file the EARDeployable object will be returned.
Field Summary | |
---|---|
private EZBArchive |
archive
Archive used by this helper. |
private static java.lang.String |
CAR_DD
APP Client XML DD. |
private static java.lang.String |
EAR_DD
EAR XML DD. |
private static java.lang.String |
EAR_EXTENSION
EAR extension. |
private static java.lang.String |
EJB_DD
EJB XML DD. |
private static java.lang.String |
JAR_EXTENSION
JAR extension. |
private static java.lang.String |
JAVAEE_NS
Java EE namespace (Java EE). |
private static JLog |
logger
Logger. |
private static java.lang.String |
MANIFEST_FILE
Manifest path. |
private static java.lang.String |
RAR_DD
Rar XML DD. |
private static java.lang.String |
RAR_EXTENSION
RAR extension. |
private static java.lang.String |
WAR_DD
Web XML DD. |
private static java.lang.String |
WAR_EXTENSION
WAR extension. |
Constructor Summary | |
---|---|
private |
DeployableHelper(EZBArchive archive)
Utility class, no public constructor. |
Method Summary | |
---|---|
private EZBDeployable |
analyze()
Analyze the URL and create a deployable object. |
private EZBDeployable |
classDetect()
Analyze the archive to see if there are some Annotated classes that can find the type of the archive. |
private ArchiveType |
ejbXMLType()
Know that the archive is an EJB but needs to analyze the XML in order to see if it is a 2.1 or 3 EJB. |
static EZBDeployable |
getDeployable(EZBArchive archive)
Gets the Deployable object for the given URL. |
private ArchiveType |
getXMLType()
Try to see if there is an XML file in the archive. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String EAR_EXTENSION
private static final java.lang.String WAR_EXTENSION
private static final java.lang.String RAR_EXTENSION
private static final java.lang.String JAR_EXTENSION
private static final java.lang.String MANIFEST_FILE
private static final java.lang.String EJB_DD
private static final java.lang.String WAR_DD
private static final java.lang.String RAR_DD
private static final java.lang.String EAR_DD
private static final java.lang.String CAR_DD
private static final java.lang.String JAVAEE_NS
private static JLog logger
private EZBArchive archive
Constructor Detail |
---|
private DeployableHelper(EZBArchive archive)
archive
- the given archiveMethod Detail |
---|
public static EZBDeployable getDeployable(EZBArchive archive) throws DeployableHelperException
archive
- the given archive
DeployableHelperException
- if the analyze failsprivate EZBDeployable analyze() throws DeployableHelperException
DeployableHelperException
- if the analyze failsprivate EZBDeployable classDetect() throws DeployableHelperException
DeployableHelperException
- if the analyze of the classes is failing.private ArchiveType getXMLType() throws DeployableHelperException
DeployableHelperException
- if the archive can't be analyzedprivate ArchiveType ejbXMLType() throws DeployableHelperException
DeployableHelperException
- if the archive can't be analyzed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |