public interface ClassResolver
Class
based on the class descriptor and
the annotation data.Modifier and Type | Method and Description |
---|---|
void |
annotateClass(Marshaller marshaller,
Class<?> clazz)
Add optional information about a class to a stream.
|
void |
annotateProxyClass(Marshaller marshaller,
Class<?> proxyClass)
Add optional information about a proxy class to a stream.
|
String |
getClassName(Class<?> clazz)
Get the class name to write for a given class.
|
String[] |
getProxyInterfaces(Class<?> proxyClass)
Get the interface names to write for a given proxy class.
|
Class<?> |
resolveClass(Unmarshaller unmarshaller,
String name,
long serialVersionUID)
Load the local class for a class descriptor.
|
Class<?> |
resolveProxyClass(Unmarshaller unmarshaller,
String[] interfaces)
Load a proxy class that implements the given interfaces.
|
void annotateClass(Marshaller marshaller, Class<?> clazz) throws IOException
marshaller
- the marshaller to write toclazz
- the class that was writtenIOException
- if an error occursObjectOutputStream.annotateClass(Class)
void annotateProxyClass(Marshaller marshaller, Class<?> proxyClass) throws IOException
marshaller
- the marshaller to write toproxyClass
- the class that was writtenIOException
- if an error occursObjectOutputStream.annotateProxyClass(Class)
String getClassName(Class<?> clazz) throws IOException
clazz
- the classIOException
- if an error occursString[] getProxyInterfaces(Class<?> proxyClass) throws IOException
proxyClass
- the proxy classIOException
- if an error occursClass<?> resolveClass(Unmarshaller unmarshaller, String name, long serialVersionUID) throws IOException, ClassNotFoundException
annotateClass(Marshaller, Class)
should be read by this method.unmarshaller
- the unmarshaller from which to read annotation data, if anyname
- the class nameserialVersionUID
- the serial version UIDIOException
- if an I/O error occursClassNotFoundException
- if the class could not be loadedObjectInputStream.resolveClass(java.io.ObjectStreamClass)
Class<?> resolveProxyClass(Unmarshaller unmarshaller, String[] interfaces) throws IOException, ClassNotFoundException
unmarshaller
- the unmarshaller from which to read annotation data, if anyinterfaces
- the class descriptorIOException
- if an I/O error occursClassNotFoundException
- if the proxy class could not be loadedObjectInputStream.resolveProxyClass(String[])
Copyright © 2021 JBoss by Red Hat. All rights reserved.