public final class ClassRef extends Object implements Serializable
This class defines a reference to a class and the set of component classes that refer to it. It may optionally also contain the multiple classloader paths by which the referenced class can be resolved by the referencing classes.
Constructor and Description |
---|
ClassRef(String referencedClass)
Create a new
ClassRef object. |
Modifier and Type | Method and Description |
---|---|
void |
addReferencingClasses(String classname)
Add a referencing class.
|
String |
getReferencedClass()
Get the referenced class name.
|
Set<String> |
getReferencingClasses()
Get the set of referencing classes.
|
Collection<List<String>> |
getResolvePaths()
Set the collection of dependency graphs through which the referenced class can be resolved.
|
void |
setResolvePaths(Collection<List<String>> resolvePaths)
Set the collection of dependency graphs through which the referenced class can be resolved.
|
public ClassRef(String referencedClass)
Create a new ClassRef
object.
referencedClass
- the name of the referenced class.public String getReferencedClass()
Get the referenced class name.
public void addReferencingClasses(String classname)
Add a referencing class.
classname
- the name of the referencing class.public Set<String> getReferencingClasses()
Get the set of referencing classes.
public void setResolvePaths(Collection<List<String>> resolvePaths)
Set the collection of dependency graphs through which the referenced class can be resolved.
Each String
element is a description of a classloader that is a node in the dependency graph.
resolvePaths
- the collection of dependency graphs through which the referenced class can be resolved.public Collection<List<String>> getResolvePaths()
Set the collection of dependency graphs through which the referenced class can be resolved.
Each String
element is a description of a classloader that is a node in the dependency graph.