|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.modules.ModuleIdentifier
public final class ModuleIdentifier
A unique identifier for a module within a module loader.
Field Summary | |
---|---|
static ModuleIdentifier |
CLASSPATH
The class path module (only present if booted from a class path). |
static ModuleIdentifier |
SYSTEM
The system module. |
Method Summary | |
---|---|
static ModuleIdentifier |
create(String name)
Creates a new module identifier using the specified name. |
static ModuleIdentifier |
create(String name,
String slot)
Creates a new module identifier using the specified name and slot. |
boolean |
equals(ModuleIdentifier other)
Determine whether this object is equal to another. |
boolean |
equals(Object other)
Determine whether this object is equal to another. |
static ModuleIdentifier |
fromString(String moduleSpec)
Parse a module specification from a string. |
String |
getName()
Get the module name. |
String |
getSlot()
Get the module version slot. |
int |
hashCode()
Determine the hash code of this module identifier. |
String |
toString()
Get the string representation of this module identifier. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ModuleIdentifier SYSTEM
public static final ModuleIdentifier CLASSPATH
Method Detail |
---|
public String getName()
public String getSlot()
public boolean equals(Object other)
equals
in class Object
other
- the other object
true
if they are equal, false
otherwisepublic boolean equals(ModuleIdentifier other)
other
- the other object
true
if they are equal, false
otherwisepublic int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public static ModuleIdentifier fromString(String moduleSpec) throws IllegalArgumentException
moduleSpec
- the specification string
IllegalArgumentException
- if the format of the module specification is invalid or it is null
public static ModuleIdentifier create(String name, String slot)
create(String)
method instead.
name
- the name of the moduleslot
- the slot this module belongs in
public static ModuleIdentifier create(String name)
name
- the name of the module
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |