Class ReferenceErrors
- java.lang.Object
-
- com.opencloud.rhino.management.deployment.audit.ReferenceErrors
-
- All Implemented Interfaces:
Serializable
public final class ReferenceErrors extends Object implements Serializable
This class contains the set of reference errors made by a component.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReferenceErrors(String refType)
Create a newReferenceErrors
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
ReferenceErrors
public ReferenceErrors(String refType)
Create a new
ReferenceErrors
object.- Parameters:
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.
-
-
Method Detail
-
getReferenceType
public String getReferenceType()
Get the reference type description.
- Returns:
- the reference type.
-
addUnresolvedClassReference
public void addUnresolvedClassReference(String referencingClass, String referencedClass)
Add an unresolved class reference for this reference type.
- Parameters:
referencingClass
- the name of the class that is the source of the reference.referencedClass
- the name of the referenced class.
-
getUnresolvedClassReferences
public Set<ClassRef> getUnresolvedClassReferences()
Get the set of classes that cannot be resolved.
- Returns:
- the set of unresolvable classes.
-
addDuplicateClassReference
public void addDuplicateClassReference(String referencingClass, String referencedClass, Collection<List<String>> resolvePaths)
Add a duplicate class reference for this reference type.
- Parameters:
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. EachString
element is a description of a classloader that is a node in the dependency graph.
-
-