Class ComponentErrors
- java.lang.Object
-
- com.opencloud.rhino.management.deployment.audit.ComponentErrors
-
- All Implemented Interfaces:
Serializable
public final class ComponentErrors extends Object implements Serializable
This class contains the audit errors reported for a single component.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComponentErrors(String name)
Create a newComponentErrors
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDuplicateClassReference(String refType, String referencingClass, String referencedClass, Collection<List<String>> resolvePaths)
Add a duplicate class reference to the component’s audit result.void
addUnresolvedClassReference(String refType, String referencingClass, String referencedClass)
Add an unresolved class reference to the component’s audit result.String
getComponentName()
Get the component identifier.Collection<ReferenceErrors>
getReferenceErrors()
Get the collection of reference errors.
-
-
-
Constructor Detail
-
ComponentErrors
public ComponentErrors(String name)
Create a new
ComponentErrors
object.- Parameters:
name
- the identifier of the component. This could be the string format of a SLEE component identifier or the URL of a manifest classpath jar.
-
-
Method Detail
-
getComponentName
public String getComponentName()
Get the component identifier.
- Returns:
- the component identifier.
-
addUnresolvedClassReference
public void addUnresolvedClassReference(String refType, String referencingClass, String referencedClass)
Add an unresolved class reference to the component’s audit result.
- 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.referencingClass
- the name of the class that is the source of the reference.referencedClass
- the name of the referenced class.
-
addDuplicateClassReference
public void addDuplicateClassReference(String refType, String referencingClass, String referencedClass, Collection<List<String>> resolvePaths)
Add a duplicate class reference to the component’s audit result.
- 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.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.
-
getReferenceErrors
public Collection<ReferenceErrors> getReferenceErrors()
Get the collection of reference errors.
- Returns:
- the collection of reference errors.
-
-