public class Overlay extends Object
An overlay is a skeleton WAR added to another WAR project in order to inject a functionality, resources or any other shared component.
Note that a particular WAR dependency can be added multiple times as an overlay with different includes/excludes filter; this allows building a fine grained overwriting policy.
The current project can also be described as an overlay and can not be specified twice. An overlay with no groupId and no artifactId represents the current project.
Modifier and Type | Field and Description |
---|---|
static String[] |
DEFAULT_EXCLUDES
The list of default excludes.
|
static String[] |
DEFAULT_INCLUDES
The list of default includes.
|
Constructor and Description |
---|
Overlay()
Create instance.
|
Overlay(String groupId,
String artifactId) |
Modifier and Type | Method and Description |
---|---|
static Overlay |
createInstance() |
boolean |
equals(Object o) |
Artifact |
getArtifact() |
String |
getArtifactId() |
String |
getClassifier() |
String[] |
getExcludes() |
String |
getGroupId() |
String |
getId() |
String[] |
getIncludes() |
String |
getTargetPath() |
String |
getType() |
int |
hashCode() |
boolean |
isCurrentProject()
Specify whether this overlay represents the current project or not.
|
boolean |
isFiltered() |
void |
setArtifact(Artifact artifact) |
void |
setArtifactId(String artifactId) |
void |
setClassifier(String classifier) |
void |
setExcludes(String excludes) |
void |
setExcludes(String[] excludes) |
void |
setFiltered(boolean filtered) |
void |
setGroupId(String groupId) |
void |
setId(String id) |
void |
setIncludes(String includes) |
void |
setIncludes(String[] includes) |
void |
setSkip(boolean skip) |
void |
setTargetPath(String targetPath) |
void |
setType(String type) |
boolean |
shouldSkip() |
String |
toString() |
public static final String[] DEFAULT_INCLUDES
public static final String[] DEFAULT_EXCLUDES
public Overlay()
public Overlay(String groupId, String artifactId)
groupId
- groupId
artifactId
- artifactId
public boolean isCurrentProject()
public String getId()
public void setId(String id)
id
- The id.public String getArtifactId()
artifactId
public void setArtifactId(String artifactId)
artifactId
- artifactId
public String getClassifier()
classifier
public void setClassifier(String classifier)
classifier
- classifier
public boolean isFiltered()
filtered
public void setFiltered(boolean filtered)
filtered
- filtered
public boolean shouldSkip()
skip
public void setSkip(boolean skip)
skip
- skip
public String getTargetPath()
targetPath
public void setTargetPath(String targetPath)
targetPath
- targetPath
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.