ClassResolver which simply resolves the class
against a classloader which is specified by the subclass implementation.
| Modifier and Type | Field and Description |
|---|---|
| protected final boolean | enforceSerialVersionUid
Specifies whether an exception should be thrown on an incorrect serialVersionUID. |
| private static final Map | |
| private static final SerializableClassRegistry |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | AbstractClassResolver(final boolean
true if an exception should be thrown on an incorrect serialVersionUIDConstruct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | annotateClass(final Marshaller
the marshaller to write to marshaller, final Class<?> the class that was written clazz)Implements org. |
| public void | annotateProxyClass(final Marshaller
the marshaller to write to marshaller, final Class<?> the class that was written proxyClass)Implements org. |
| protected abstract ClassLoader | Returns: the classloaderGet the classloader to use to resolve classes for this resolver. |
| public String | getClassName(final Class<?>
the class clazz)Implements org. |
| public String[] | getProxyInterfaces(final Class<?>
the proxy class proxyClass)Implements org. |
| protected Class | |
| public Class | resolveClass(final Unmarshaller
the unmarshaller from which to read annotation data, if any unmarshaller, final String the class name name, final long the serial version UID serialVersionUID)Implements org. |
| public Class | resolveProxyClass(final Unmarshaller
the unmarshaller from which to read annotation data, if any unmarshaller, final String[] the class descriptor interfaces)Implements org. |
| enforceSerialVersionUid | back to summary |
|---|---|
| protected final boolean enforceSerialVersionUid Specifies whether an exception should be thrown on an incorrect serialVersionUID. | |
| primitives | back to summary |
|---|---|
| private static final Map<String, Class<?>> primitives | |
| registry | back to summary |
|---|---|
| private static final SerializableClassRegistry registry | |
| AbstractClassResolver | back to summary |
|---|---|
| protected AbstractClassResolver() Construct a new instance. | |
| AbstractClassResolver | back to summary |
|---|---|
| protected AbstractClassResolver(final boolean enforceSerialVersionUid) Construct a new instance.
| |
| annotateClass | back to summary |
|---|---|
| public void annotateClass(final Marshaller marshaller, final Class<?> clazz) throws IOException Implements org. Doc from org. Add optional information about a class to a stream. The class descriptor will already have been written. The base implementation takes no action.
| |
| annotateProxyClass | back to summary |
|---|---|
| public void annotateProxyClass(final Marshaller marshaller, final Class<?> proxyClass) throws IOException Implements org. Doc from org. Add optional information about a proxy class to a stream. The class descriptor will already have been written. The base implementation takes no action.
| |
| getClassLoader | back to summary |
|---|---|
| protected abstract ClassLoader getClassLoader() Get the classloader to use to resolve classes for this resolver.
| |
| getClassName | back to summary |
|---|---|
| public String getClassName(final Class<?> clazz) throws IOException Implements org. Doc from org. Get the class name to write for a given class. The class name will be written as part of the class descriptor. The base implementation returns the name of the class.
| |
| getProxyInterfaces | back to summary |
|---|---|
| public String[] getProxyInterfaces(final Class<?> proxyClass) throws IOException Implements org. Doc from org. Get the interface names to write for a given proxy class. The interface names will be written as part
of the class descriptor. The base implementation returns the name of each interface (via
| |
| loadClass | back to summary |
|---|---|
| protected Class Load a class with the given name. The base implementation uses the classloader returned from
| |
| resolveClass | back to summary |
|---|---|
| public Class Implements org. Doc from org. Load the local class for a class descriptor. The class descriptor has already been read,
but any data written by
| |
| resolveProxyClass | back to summary |
|---|---|
| public Class Implements org. Doc from org. Load a proxy class that implements the given interfaces. The base implementation uses the class loader returned from
| |