public class ModuleClassLoaderMarshaller extends Object implements ClassLoaderMarshaller
| Constructor and Description |
|---|
ModuleClassLoaderMarshaller(org.jboss.modules.Module defaultModule) |
ModuleClassLoaderMarshaller(org.jboss.modules.ModuleLoader loader) |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getBuilder()
Returns a builder for use with
FieldSetMarshaller.readField(ProtoStreamReader, int, Object). |
int |
getFields()
Returns the number of fields written by this marshaller.
|
ClassLoader |
readField(ProtoStreamReader reader,
int index,
ClassLoader loader)
Reads a single field from the specified reader at the specified index.
|
void |
writeFields(ProtoStreamWriter writer,
int startIndex,
ClassLoader loader)
Writes the set of fields from the specified object to the specified writer beginning at the specified index.
|
public ModuleClassLoaderMarshaller(org.jboss.modules.Module defaultModule)
public ModuleClassLoaderMarshaller(org.jboss.modules.ModuleLoader loader)
public ClassLoader getBuilder()
FieldSetMarshallerFieldSetMarshaller.readField(ProtoStreamReader, int, Object).
May return a shared instance, if the builder type is immutable, or a new instance, if the builder is mutable.getBuilder in interface FieldSetMarshaller<ClassLoader,ClassLoader>public int getFields()
FieldSetMarshallergetFields in interface FieldSetMarshaller<ClassLoader,ClassLoader>public ClassLoader readField(ProtoStreamReader reader, int index, ClassLoader loader) throws IOException
FieldSetMarshallerreadField in interface FieldSetMarshaller<ClassLoader,ClassLoader>reader - a ProtoStream readerindex - the field indexloader - the builder to be populated with the read fieldIOException - if the field could not be readpublic void writeFields(ProtoStreamWriter writer, int startIndex, ClassLoader loader) throws IOException
FieldSetMarshallerwriteFields in interface FieldSetMarshaller<ClassLoader,ClassLoader>writer - a ProtoStream writerstartIndex - the start index for the embedded fieldsloader - the value to be writtenIOException - if the value could not be writtenCopyright © 2022 JBoss by Red Hat. All rights reserved.