Class ReferenceErrors

    • 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. Each String element is a description of a classloader that is a node in the dependency graph.
      • getDuplicateReferences

        public Set<ClassRef> getDuplicateReferences()

        Get the set of classes that are duplicated in referenced components loadable via different classloaders.

        Returns:
        the set of duplicated referenced classes.