Class LoadedClassField
java.lang.Object
org.wildfly.clustering.marshalling.protostream.LoadedClassField
- All Implemented Interfaces:
Field<Class<?>>,FieldMarshaller<Class<?>>,Marshallable<Class<?>>,Readable<Class<?>>,Writable<Class<?>>
A class field that marshals instances of
Class using a ClassLoaderMarshaller.- Author:
- Paul Ferraro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetIndex()Returns the index of this field.Returns the type of object handled by this marshallable instance.FieldMarshaller<Class<?>>Returns the marshaller for this field.org.infinispan.protostream.descriptors.WireTypeReturns the wire type of the scalar value written by this marshaller.Class<?>readFrom(ProtoStreamReader reader) Reads an object from the specified reader.voidwriteTo(ProtoStreamWriter writer, Class<?> targetClass) Writes the specified object to the specified writer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.marshalling.protostream.Marshallable
size
-
Constructor Details
-
LoadedClassField
-
-
Method Details
-
getMarshaller
Description copied from interface:FieldReturns the marshaller for this field.- Specified by:
getMarshallerin interfaceField<Class<?>>- Returns:
- the marshaller for this field.
-
readFrom
Description copied from interface:ReadableReads an object from the specified reader.- Specified by:
readFromin interfaceReadable<Class<?>>- Parameters:
reader- a ProtoStream reader- Returns:
- the read object
- Throws:
IOException- if the object could not be read
-
writeTo
Description copied from interface:WritableWrites the specified object to the specified writer.- Specified by:
writeToin interfaceWritable<Class<?>>- Parameters:
writer- a ProtoStream writertargetClass- the object to be written- Throws:
IOException- if the object could not be written
-
getJavaClass
Description copied from interface:MarshallableReturns the type of object handled by this marshallable instance.- Specified by:
getJavaClassin interfaceMarshallable<Class<?>>- Returns:
- the type of object handled by this marshallable instance.
-
getIndex
public int getIndex()Description copied from interface:FieldReturns the index of this field. -
getWireType
public org.infinispan.protostream.descriptors.WireType getWireType()Description copied from interface:FieldMarshallerReturns the wire type of the scalar value written by this marshaller.- Specified by:
getWireTypein interfaceFieldMarshaller<Class<?>>- Returns:
- the wire type of the scalar value written by this marshaller.
-