|
JBoss Marshalling 1.3.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClassResolver
A class annotator and resolver. Instances of this interface have the opportunity
to append information (such as classloader information, or class bytes) to a written
class descriptor. This information can then be used on unmarshalling to aid in the
selection (or creation) of the proper Class
based on the class descriptor and
the annotation data.
Method Summary | |
---|---|
void |
annotateClass(Marshaller marshaller,
java.lang.Class<?> clazz)
Add optional information about a class to a stream. |
void |
annotateProxyClass(Marshaller marshaller,
java.lang.Class<?> proxyClass)
Add optional information about a proxy class to a stream. |
java.lang.String |
getClassName(java.lang.Class<?> clazz)
Get the class name to write for a given class. |
java.lang.String[] |
getProxyInterfaces(java.lang.Class<?> proxyClass)
Get the interface names to write for a given proxy class. |
java.lang.Class<?> |
resolveClass(Unmarshaller unmarshaller,
java.lang.String name,
long serialVersionUID)
Load the local class for a class descriptor. |
java.lang.Class<?> |
resolveProxyClass(Unmarshaller unmarshaller,
java.lang.String[] interfaces)
Load a proxy class that implements the given interfaces. |
Method Detail |
---|
void annotateClass(Marshaller marshaller, java.lang.Class<?> clazz) throws java.io.IOException
marshaller
- the marshaller to write toclazz
- the class that was written
java.io.IOException
- if an error occursObjectOutputStream.annotateClass(Class)
void annotateProxyClass(Marshaller marshaller, java.lang.Class<?> proxyClass) throws java.io.IOException
marshaller
- the marshaller to write toproxyClass
- the class that was written
java.io.IOException
- if an error occursObjectOutputStream.annotateProxyClass(Class)
java.lang.String getClassName(java.lang.Class<?> clazz) throws java.io.IOException
clazz
- the class
java.io.IOException
- if an error occursjava.lang.String[] getProxyInterfaces(java.lang.Class<?> proxyClass) throws java.io.IOException
proxyClass
- the proxy class
java.io.IOException
- if an error occursjava.lang.Class<?> resolveClass(Unmarshaller unmarshaller, java.lang.String name, long serialVersionUID) throws java.io.IOException, java.lang.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 UID
java.io.IOException
- if an I/O error occurs
java.lang.ClassNotFoundException
- if the class could not be loadedObjectInputStream.resolveClass(java.io.ObjectStreamClass)
java.lang.Class<?> resolveProxyClass(Unmarshaller unmarshaller, java.lang.String[] interfaces) throws java.io.IOException, java.lang.ClassNotFoundException
unmarshaller
- the unmarshaller from which to read annotation data, if anyinterfaces
- the class descriptor
java.io.IOException
- if an I/O error occurs
java.lang.ClassNotFoundException
- if the proxy class could not be loadedObjectInputStream.resolveProxyClass(String[])
|
JBoss Marshalling 1.3.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |