public final class ReferenceErrors extends Object implements Serializable
This class contains the set of reference errors made by a component.
Constructor and Description |
---|
ReferenceErrors(String refType)
Create a new object.
|
Modifier and Type | Method and Description |
---|---|
void |
addDuplicateClassReference(String referencingClass,
String referencedClass,
Collection<List<String>> resolvePaths)
Add a duplicate class reference for this reference type.
|
void |
addUnresolvedClassReference(String referencingClass,
String referencedClass)
Add an unresolved class reference for this reference type.
|
Set<ClassRef> |
getDuplicateReferences()
Get the set of classes that are duplicated in referenced components loadable via different classloaders.
|
String |
getReferenceType()
Get the reference type description.
|
Set<ClassRef> |
getUnresolvedClassReferences()
Get the set of classes that cannot be resolved.
|
public ReferenceErrors(String refType)
Create a new object.
refType
- a description of the type of reference.
For example, a component jar, a manifest classpath jar, or a constituent library jar of a library component.public String getReferenceType()
Get the reference type description.
public void addUnresolvedClassReference(String referencingClass, String referencedClass)
Add an unresolved class reference for this reference type.
referencingClass
- the name of the class that is the source of the reference.referencedClass
- the name of the referenced class.public Set<ClassRef> getUnresolvedClassReferences()
Get the set of classes that cannot be resolved.
public void addDuplicateClassReference(String referencingClass, String referencedClass, Collection<List<String>> resolvePaths)
Add a duplicate class reference for this reference type.
referencingClass
- the name of the class that is the source of the reference.referencedClass
- the name of the referenced class.resolvePaths
- a collection of the 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.