|
||||||||||
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 String |
ALT_DD
|
protected String |
altDeploymentDescriptor
|
protected String |
bundleDir
|
protected String |
bundleFileName
|
protected EarExecutionContext |
earExecutionContext
|
protected Boolean |
excluded
|
protected static String |
JAVA_MODULE
|
protected static String |
MODULE_ELEMENT
|
protected Boolean |
unpack
|
Constructor Summary | |
---|---|
AbstractEarModule()
Empty constructor to be used when the module is built based on the configuration. |
|
AbstractEarModule(Artifact a)
Creates an ear module from the artifact. |
Method Summary | |
---|---|
boolean |
changeManifestClasspath()
|
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. |
Artifact |
getArtifact()
Returns the Artifact representing this module. |
String |
getArtifactId()
Returns the artifact's Id. |
String |
getBundleDir()
Returns the bundle directory. |
String |
getBundleFileName()
Returns the bundle file name. |
String |
getClassifier()
Returns the artifact's classifier. |
String |
getGroupId()
Returns the artifact's groupId. |
String |
getLibDir()
|
String |
getModuleId()
|
String |
getUri()
Returns the URI for this module. |
boolean |
isExcluded()
Specify whether this module should be excluded or not. |
void |
resolveArtifact(Set<Artifact> artifacts)
Resolves the Artifact represented by the module. |
void |
setEarExecutionContext(EarExecutionContext earExecutionContext)
|
Boolean |
shouldUnpack()
Specify whether this module should be unpacked in the EAR archive or not. |
protected void |
startModuleElement(XMLWriter writer,
Boolean generateId)
Starts a new MODULE_ELEMENT on the specified writer, possibly
including an id attribute. |
String |
toString()
|
protected void |
writeAltDeploymentDescriptor(XMLWriter writer,
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 String MODULE_ELEMENT
protected static final String JAVA_MODULE
protected static final String ALT_DD
protected String bundleDir
protected String bundleFileName
protected Boolean excluded
protected Boolean unpack
protected String altDeploymentDescriptor
protected EarExecutionContext earExecutionContext
Constructor Detail |
---|
public AbstractEarModule()
public AbstractEarModule(Artifact a)
a
- the artifactMethod Detail |
---|
public void setEarExecutionContext(EarExecutionContext earExecutionContext)
setEarExecutionContext
in interface EarModule
public void resolveArtifact(Set<Artifact> artifacts) throws EarPluginException, MojoFailureException
Artifact
represented by the module. Note
that the EarExecutionContext
might be used to customize
further the resolution.
resolveArtifact
in interface EarModule
artifacts
- the project's artifacts
EarPluginException
- if the artifact could not be resolved
MojoFailureException
- if an unexpected error occurredpublic 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 String getModuleId()
public String getUri()
EarModule
getUri
in interface EarModule
public String getGroupId()
public String getArtifactId()
public String getClassifier()
public String getBundleDir()
public String getBundleFileName()
public String getAltDeploymentDescriptor()
getAltDeploymentDescriptor
in interface EarModule
public boolean isExcluded()
isExcluded
in interface EarModule
public Boolean shouldUnpack()
EarModule
shouldUnpack
in interface EarModule
protected void writeAltDeploymentDescriptor(XMLWriter writer, String version)
writer
- the writer to useversion
- the java EE version in useprotected void startModuleElement(XMLWriter writer, Boolean generateId)
MODULE_ELEMENT
on the specified writer, possibly
including an id attribute.
writer
- the XML writer.generateId
- whether an id should be generatedpublic String toString()
toString
in class Object
public boolean changeManifestClasspath()
changeManifestClasspath
in interface EarModule
public String getLibDir()
getLibDir
in interface EarModule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |