|
JBoss Marshalling 1.3.0.CR9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.marshalling.ModularClassTable
public final class ModularClassTable

A class table which implements an alternate class resolution strategy based on JBoss Modules. Each class name is stored along with its corresponding module identifier, which allows the object graph to be exactly reconstituted on the remote side. This class should only be used when the marshalling and unmarshalling side share the same class files.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jboss.marshalling.ClassTable |
|---|
ClassTable.Writer |
| Method Summary | |
|---|---|
ClassTable.Writer |
getClassWriter(Class<?> clazz)
Determine whether the given class reference is a valid predefined reference. |
static ModularClassTable |
getInstance(org.jboss.modules.ModuleLoader moduleLoader)
Get an instance using the given module loader. |
Class<?> |
readClass(Unmarshaller unmarshaller)
Read a class from the stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ModularClassTable getInstance(org.jboss.modules.ModuleLoader moduleLoader)
moduleLoader - the module loader to use
public ClassTable.Writer getClassWriter(Class<?> clazz)
throws IOException
getClassWriter in interface ClassTableclazz - the candidate class
null to use the default mechanism
IOException - if an I/O error occurs
public Class<?> readClass(Unmarshaller unmarshaller)
throws IOException,
ClassNotFoundException
ClassTable.getClassWriter(Class) method's Writer instance, as defined above.
readClass in interface ClassTableunmarshaller - the unmarshaller to read from
IOException - if an I/O error occurs
ClassNotFoundException - if a class could not be found
|
JBoss Marshalling 1.3.0.CR9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||