|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.commons.modules.ModuleInfo
public final class ModuleInfo
Provides access to deegree module metadata (e.g. Maven artifact identifier and build information).
The information is extracted from the following resources on the classpath:
META-INF/deegree/buildinfo.properties
META-INF/maven/$groupId/$artifactId/pom.properties
Method Summary | |
---|---|
int |
compareTo(ModuleInfo that)
|
boolean |
equals(Object o)
|
static ModuleInfo |
extractModuleInfo(URL classpathURL)
Returns the ModuleInfo for the deegree module on the given classpath. |
static Collection<ModuleInfo> |
extractModulesInfo(Set<URL> classpathURLs)
Returns the ModuleInfo s for the deegree modules on the given classpathes. |
String |
getArtifactId()
|
String |
getBuildBy()
Returns the name of the builder. |
String |
getBuildDate()
Returns the date string when the current build was created. |
URL |
getClasspath()
Returns the URL of the module's classpath. |
String |
getGroupId()
|
static Collection<ModuleInfo> |
getModulesInfo()
Returns the ModuleInfo s for the deegree modules accessible by the default classloader. |
String |
getSvnRevision()
|
String |
getVersion()
Returns the module's version. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public URL getClasspath()
null
public String getGroupId()
public String getArtifactId()
public String getVersion()
public String getBuildDate()
public String getBuildBy()
public String getSvnRevision()
public static Collection<ModuleInfo> getModulesInfo()
ModuleInfo
s for the deegree modules accessible by the default classloader.
null
, but can be emptypublic static Collection<ModuleInfo> extractModulesInfo(Set<URL> classpathURLs) throws IOException
ModuleInfo
s for the deegree modules on the given classpathes.
classpathURLs
- classpath urls, must not be null
null
, but can be empty (if no deegree module information is present on
the given classpathes)
IOException
- if accessing META-INF/deegree/buildinfo.properties
or
META-INF/maven/[..]/pom.properties
failspublic static ModuleInfo extractModuleInfo(URL classpathURL) throws IOException
ModuleInfo
for the deegree module on the given classpath.
classpathURL
- classpath url, must not be null
null
(if the module does not have file META-INF/deegree/buildinfo.properties)
IOException
- if accessing META-INF/deegree/buildinfo.properties
or
META-INF/maven/[..]/pom.properties
failspublic int compareTo(ModuleInfo that)
compareTo
in interface Comparable<ModuleInfo>
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |