ClassTable
public final class ModularClassTable extends Object implements ClassTable
ClassTable.Writer
Modifier and Type | Method | Description |
---|---|---|
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.
|
public static ModularClassTable getInstance(org.jboss.modules.ModuleLoader moduleLoader)
moduleLoader
- the module loader to usepublic ClassTable.Writer getClassWriter(Class<?> clazz) throws IOException
getClassWriter
in interface ClassTable
clazz
- the candidate classnull
to use the default mechanismIOException
- if an I/O error occurspublic Class<?> readClass(Unmarshaller unmarshaller) throws IOException, ClassNotFoundException
ClassTable.getClassWriter(Class)
method's Writer
instance, as defined above.readClass
in interface ClassTable
unmarshaller
- the unmarshaller to read fromIOException
- if an I/O error occursClassNotFoundException
- if a class could not be foundCopyright © 2018 JBoss by Red Hat. All rights reserved.