|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.resource.domain.ClassPathEnvironment
@NotThreadSafe public final class ClassPathEnvironment
Defines the environment of class path resources to access.
Constructor Summary | |
---|---|
ClassPathEnvironment() Default constructor. |
|
ClassPathEnvironment(ArtifactRef... artifactRefs) Convenience constructor that allows to add artifact references to create an initial list. |
|
ClassPathEnvironment(List<ArtifactRef> artifactRefs) Convenience constructor that allows to add artifact references to create an initial list. |
Method Summary | |
---|---|
void |
addAnyArtifactRef(ArtifactRef artifactRef) Adds the given artifact reference to the list of artifact references. |
void |
addArchiveArtifactRef(ArtifactRef archiveArtifactRef) Adds the given artifact reference to the list of artifact references. |
ArtifactRef |
getArtifactRef(String artifactId) Returns the artifact reference by its short ID. |
List<ArtifactRef> |
getArtifactRefs() Returns a list of artifact references. |
List<URL> |
getUrls() Returns a list of URLs that point to the physical locations of the artifacts. |
String |
toString() Returns the string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClassPathEnvironment()
public ClassPathEnvironment(ArtifactRef... artifactRefs)
artifactRefs
- the initial collection of artifact references to add as roots.
public ClassPathEnvironment(List<ArtifactRef> artifactRefs)
artifactRefs
- the initial collection of artifact references to add as roots.
Method Detail |
---|
public List<ArtifactRef> getArtifactRefs()
public List<URL> getUrls()
@CheckForNull public ArtifactRef getArtifactRef(String artifactId) throws NullPointerException
artifactId
- the GAV concatenated and separated by colons.
null
if there is no artifact reference with the given
artifactId
registered.
NullPointerException
- if
artifactId
is
null
.
public void addArchiveArtifactRef(ArtifactRef archiveArtifactRef) throws NullPointerException
If archiveArtifactRef
is not an archive
, it will not be added.
archiveArtifactRef
- the artifact reference to add.
NullPointerException
- if
archiveArtifactRef
is
null
.
public void addAnyArtifactRef(ArtifactRef artifactRef) throws NullPointerException
artifactRef
- the artifact reference to add.
NullPointerException
- if
artifactRef
is
null
.
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |