Package net.jini.loader
Interface ClassAnnotation
- All Known Implementing Classes:
ClassAnnotator,PreferredClassLoader,ServiceClassLoader
public interface ClassAnnotation
Provides a class annotation string for classes defined by a class loader that is an instance of
this interface.
This interface allows a ClassLoader subclass to customize the behavior of RMIClassLoader.getClassAnnotation (and thus RMI marshalling
semantics) for classes defined by its instances.
Note that this interface is only effective if the current RMIClassLoader provider
supports it; not all RMIClassLoader providers support this interface. In
particular, the default provider (see RMIClassLoader.getDefaultProviderInstance) does not support this interface, and so when
the default provider is used, this interface will be ignored by RMIClassLoader.getClassAnnotation.
PreferredClassProvider and its subclasses do support this interface.
- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the class annotation string for classes defined by this class loader.
-
Method Details
-
getClassAnnotation
String getClassAnnotation()Returns the class annotation string for classes defined by this class loader. The returned value may benull.- Returns:
- the class annotation string for classes defined by this loader, or
null
-