public class LoadedClassField extends Object implements Field<Class<?>>, FieldMarshaller<Class<?>>
Class using a ClassLoaderMarshaller.| Constructor and Description |
|---|
LoadedClassField(ClassLoaderMarshaller loaderMarshaller,
int index) |
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Returns the index of this field.
|
Class<? extends Class<?>> |
getJavaClass()
Returns the type of object handled by this marshallable instance.
|
FieldMarshaller<Class<?>> |
getMarshaller()
Returns the marshaller for this field.
|
org.infinispan.protostream.descriptors.WireType |
getWireType()
Returns the wire type of the scalar value written by this marshaller.
|
Class<?> |
readFrom(ProtoStreamReader reader)
Reads an object from the specified reader.
|
void |
writeTo(ProtoStreamWriter writer,
Class<?> targetClass)
Writes the specified object to the specified writer.
|
public LoadedClassField(ClassLoaderMarshaller loaderMarshaller, int index)
public FieldMarshaller<Class<?>> getMarshaller()
FieldgetMarshaller in interface Field<Class<?>>public Class<?> readFrom(ProtoStreamReader reader) throws IOException
MarshallablereadFrom in interface Marshallable<Class<?>>reader - a ProtoStream readerIOException - if the object could not be readpublic void writeTo(ProtoStreamWriter writer, Class<?> targetClass) throws IOException
MarshallablewriteTo in interface Marshallable<Class<?>>writer - a ProtoStream writertargetClass - the object to be writtenIOException - if the object could not be writtenpublic Class<? extends Class<?>> getJavaClass()
MarshallablegetJavaClass in interface Marshallable<Class<?>>public int getIndex()
Fieldpublic org.infinispan.protostream.descriptors.WireType getWireType()
FieldMarshallergetWireType in interface FieldMarshaller<Class<?>>Copyright © 2022 JBoss by Red Hat. All rights reserved.