public class ClassResolverField extends Object implements Field<Class<?>>
Class using a ClassResolver.| Constructor and Description |
|---|
ClassResolverField(ClassResolver resolver,
int index) |
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex() |
Class<? extends Class<?>> |
getJavaClass() |
Class<?> |
readFrom(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader) |
OptionalInt |
size(org.infinispan.protostream.ImmutableSerializationContext context,
Class<?> targetClass)
Returns the size of the buffer to use for marshalling the specified object, if known.
|
void |
writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
Class<?> targetClass) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeNamebyteArraySize, signedIntSize, signedLongSize, stringSize, unsignedIntSize, unsignedLongSizepublic ClassResolverField(ClassResolver resolver, int index)
public Class<?> readFrom(org.infinispan.protostream.ImmutableSerializationContext context, org.infinispan.protostream.RawProtoStreamReader reader) throws IOException
readFrom in interface org.infinispan.protostream.RawProtobufMarshaller<Class<?>>IOExceptionpublic void writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
Class<?> targetClass)
throws IOException
writeTo in interface org.infinispan.protostream.RawProtobufMarshaller<Class<?>>IOExceptionpublic OptionalInt size(org.infinispan.protostream.ImmutableSerializationContext context, Class<?> targetClass)
Predictablesize in interface Predictable<Class<?>>context - the serialization contexttargetClass - the value to be marshalled.public Class<? extends Class<?>> getJavaClass()
getJavaClass in interface org.infinispan.protostream.BaseMarshaller<Class<?>>Copyright © 2021 JBoss by Red Hat. All rights reserved.