Package org.jini.rio.boot
Class ClassAnnotator
java.lang.Object
org.jini.rio.boot.ClassAnnotator
- All Implemented Interfaces:
ClassAnnotation
Provides support to annotate classes required for dynamic class loading in RMI
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionClassAnnotator(URL[] codebase, Properties props) Constructs a new ClassAnnotator for the specified codebase URLs -
Method Summary
Modifier and TypeMethodDescriptionReturns the class annotation string for classes defined by this class loader.protected PropertiesGet the propertiesURL[]getURLs()Get the codebase URLs used for class annotations.voidsetAnnotationURLs(URL[] urls) Replace the URLs used for class annotations.static StringurlsToPath(URL[] urls) Utility method that converts aURL[]into a corresponding, space-separated string with the same array elements.
-
Constructor Details
-
ClassAnnotator
Constructs a new ClassAnnotator for the specified codebase URLs- Parameters:
codebase- Array of URLs to use for the codebaseprops- Optional properties a ClassAnnotator may use to control behavior
-
-
Method Details
-
getURLs
Get the codebase URLs used for class annotations.- Returns:
- The codebase URLs required for class annotations
-
setAnnotationURLs
Replace the URLs used for class annotations.- Parameters:
urls- The URLs used for class annotations.
-
getClassAnnotation
Description copied from interface:ClassAnnotationReturns the class annotation string for classes defined by this class loader. The returned value may benull.- Specified by:
getClassAnnotationin interfaceClassAnnotation- Returns:
- the class annotation string for classes defined by this loader, or
null - See Also:
-
getProperties
Get the properties- Returns:
- A Properties object set at creation time. A new Properties object is created each time
-
urlsToPath
Utility method that converts aURL[]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.
-