public final class ModularClassTable extends java.lang.Object implements ClassTable
ClassTable.Writer
Modifier and Type | Method and Description |
---|---|
ClassTable.Writer |
getClassWriter(java.lang.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.
|
java.lang.Class<?> |
readClass(Unmarshaller unmarshaller)
Read a class from the stream.
|
public static ModularClassTable getInstance(org.jboss.modules.ModuleLoader moduleLoader)
moduleLoader
- the module loader to usepublic ClassTable.Writer getClassWriter(java.lang.Class<?> clazz) throws java.io.IOException
getClassWriter
in interface ClassTable
clazz
- the candidate classnull
to use the default mechanismjava.io.IOException
- if an I/O error occurspublic java.lang.Class<?> readClass(Unmarshaller unmarshaller) throws java.io.IOException, java.lang.ClassNotFoundException
ClassTable.getClassWriter(Class)
method's Writer
instance, as defined above.readClass
in interface ClassTable
unmarshaller
- the unmarshaller to read fromjava.io.IOException
- if an I/O error occursjava.lang.ClassNotFoundException
- if a class could not be foundCopyright © 2011 JBoss, a division of Red Hat, Inc.