Class ClassRef

  • All Implemented Interfaces:
    Serializable

    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.

    See Also:
    Serialized Form
    • Constructor Detail

      • ClassRef

        public ClassRef​(String referencedClass)

        Create a new ClassRef object.

        Parameters:
        referencedClass - the name of the referenced class.
    • Method Detail

      • getReferencedClass

        public String getReferencedClass()

        Get the referenced class name.

        Returns:
        the referenced class name.
      • addReferencingClasses

        public void addReferencingClasses​(String classname)

        Add a referencing class.

        Parameters:
        classname - the name of the referencing class.
      • getReferencingClasses

        public Set<String> getReferencingClasses()

        Get the set of referencing classes.

        Returns:
        the set of referencing classes.
      • setResolvePaths

        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.

        Parameters:
        resolvePaths - the collection of dependency graphs through which the referenced class can be resolved.
      • getResolvePaths

        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.

        Returns:
        the collection of dependency graphs through which the referenced class can be resolved.