Class ClassAnnotator

java.lang.Object
org.jini.rio.boot.ClassAnnotator
All Implemented Interfaces:
ClassAnnotation

public class ClassAnnotator extends Object implements ClassAnnotation
Provides support to annotate classes required for dynamic class loading in RMI
See Also:
  • Constructor Details

    • ClassAnnotator

      public ClassAnnotator(URL[] codebase, Properties props)
      Constructs a new ClassAnnotator for the specified codebase URLs
      Parameters:
      codebase - Array of URLs to use for the codebase
      props - Optional properties a ClassAnnotator may use to control behavior
  • Method Details

    • getURLs

      public URL[] getURLs()
      Get the codebase URLs used for class annotations.
      Returns:
      The codebase URLs required for class annotations
    • setAnnotationURLs

      public void setAnnotationURLs(URL[] urls)
      Replace the URLs used for class annotations.
      Parameters:
      urls - The URLs used for class annotations.
    • getClassAnnotation

      public String getClassAnnotation()
      Description copied from interface: ClassAnnotation
      Returns the class annotation string for classes defined by this class loader. The returned value may be null.
      Specified by:
      getClassAnnotation in interface ClassAnnotation
      Returns:
      the class annotation string for classes defined by this loader, or null
      See Also:
    • getProperties

      protected Properties getProperties()
      Get the properties
      Returns:
      A Properties object set at creation time. A new Properties object is created each time
    • urlsToPath

      public static String urlsToPath(URL[] urls)
      Utility method that converts a URL[] into a corresponding, space-separated string with the same array elements. Note that if the array has zero elements, the return value is the empty string.