public interface EarModule
| Modifier and Type | Method and Description |
|---|---|
void |
appendModule(XMLWriter writer,
String version,
Boolean generateId)
Appends the
XML representation of this module. |
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 |
getBundleFileName()
Returns the bundle file name.
|
String |
getLibDir() |
String |
getType()
Returns the type associated to the module.
|
String |
getUri()
Returns the
URI for this module. |
boolean |
isClassPathItem()
If module should be included into the Class-Path entry of MANIFEST.mf.
|
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.
|
Artifact getArtifact()
Artifact representing this module.
Note that this might return null till the module has been resolved.resolveArtifact(java.util.Set)String getUri()
URI for this module.URIString getType()
boolean isExcluded()
Boolean shouldUnpack()
String getAltDeploymentDescriptor()
void appendModule(XMLWriter writer, String version, Boolean generateId)
XML representation of this module.writer - the writer to useversion - the version of the application.xml filegenerateId - whether an id should be generatedvoid resolveArtifact(Set<Artifact> artifacts) throws EarPluginException, MojoFailureException
Artifact represented by the module. Note that the EarExecutionContext might be used
to customize further the resolution.artifacts - the project's artifactsEarPluginException - if the artifact could not be resolvedMojoFailureException - if an unexpected error occurredvoid setEarExecutionContext(EarExecutionContext earExecutionContext)
earExecutionContext - The execution context.boolean changeManifestClasspath()
String getLibDir()
null, which means that module doesn't contain any packaged libraries.String getBundleFileName()
null, the artifact's file name is returned.boolean isClassPathItem()
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.