|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.ear.AbstractEarModule
public abstract class AbstractEarModule
A base implementation of an EarModule
.
Field Summary | |
---|---|
protected static java.lang.String |
ALT_DD
|
protected java.lang.String |
altDeploymentDescriptor
|
protected java.lang.String |
bundleDir
|
protected java.lang.String |
bundleFileName
|
protected java.lang.Boolean |
excluded
|
protected static java.lang.String |
JAVA_MODULE
|
protected static java.lang.String |
MODULE_ELEMENT
|
protected java.lang.Boolean |
unpack
|
Constructor Summary | |
---|---|
AbstractEarModule()
Empty constructor to be used when the module is built based on the configuration. |
|
AbstractEarModule(org.apache.maven.artifact.Artifact a)
Creates an ear module from the artifact. |
Method Summary | |
---|---|
java.lang.String |
getAltDeploymentDescriptor()
The alt-dd element specifies an optional URI to the post-assembly version of the deployment descriptor file for a particular Java EE module. |
org.apache.maven.artifact.Artifact |
getArtifact()
Returns the Artifact representing this module. |
java.lang.String |
getArtifactId()
Returns the artifact's Id. |
java.lang.String |
getBundleDir()
Returns the bundle directory. |
java.lang.String |
getBundleFileName()
Returns the bundle file name. |
java.lang.String |
getClassifier()
Returns the artifact's classifier. |
java.lang.String |
getGroupId()
Returns the artifact's groupId. |
java.lang.String |
getUri()
Returns the URI for this module. |
boolean |
isExcluded()
Specify whether this module should be excluded or not. |
void |
resolveArtifact(java.util.Set artifacts)
Resolves the Artifact represented by the module. |
java.lang.Boolean |
shouldUnpack()
Specify whether this module should be unpacked in the EAR archive or not. |
java.lang.String |
toString()
|
protected void |
writeAltDeploymentDescriptor(org.codehaus.plexus.util.xml.XMLWriter writer,
java.lang.String version)
Writes the alternative deployment descriptor if necessary. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.maven.plugin.ear.EarModule |
---|
appendModule, getType |
Field Detail |
---|
protected static final java.lang.String MODULE_ELEMENT
protected static final java.lang.String JAVA_MODULE
protected static final java.lang.String ALT_DD
protected java.lang.String bundleDir
protected java.lang.String bundleFileName
protected java.lang.Boolean excluded
protected java.lang.Boolean unpack
protected java.lang.String altDeploymentDescriptor
Constructor Detail |
---|
public AbstractEarModule()
public AbstractEarModule(org.apache.maven.artifact.Artifact a)
a
- the artifactMethod Detail |
---|
public void resolveArtifact(java.util.Set artifacts) throws EarPluginException, org.apache.maven.plugin.MojoFailureException
EarModule
Artifact
represented by the module. Note
that the EarExecutionContext
might be used to customiz
further the resolution.
resolveArtifact
in interface EarModule
artifacts
- the project's artifacts
EarPluginException
- if the artifact could not be resolved
org.apache.maven.plugin.MojoFailureException
- if an unexpected error occuredpublic org.apache.maven.artifact.Artifact getArtifact()
EarModule
Artifact
representing this module.
Note that this might return null till the
module has been resolved.
getArtifact
in interface EarModule
EarModule.resolveArtifact(java.util.Set)
public java.lang.String getUri()
EarModule
getUri
in interface EarModule
public java.lang.String getGroupId()
public java.lang.String getArtifactId()
public java.lang.String getClassifier()
public java.lang.String getBundleDir()
public java.lang.String getBundleFileName()
public java.lang.String getAltDeploymentDescriptor()
getAltDeploymentDescriptor
in interface EarModule
public boolean isExcluded()
isExcluded
in interface EarModule
public java.lang.Boolean shouldUnpack()
EarModule
shouldUnpack
in interface EarModule
protected void writeAltDeploymentDescriptor(org.codehaus.plexus.util.xml.XMLWriter writer, java.lang.String version)
writer
- the writer to useversion
- the java EE version in usepublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |