public class ClassLoaderResolver extends Object implements ClassResolver
ClassLoader.| Constructor and Description |
|---|
ClassLoaderResolver(ClassLoader loader) |
| Modifier and Type | Method and Description |
|---|---|
void |
annotate(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
Class<?> targetClass)
Writes any additional context necessary to resolve the specified class.
|
Class<?> |
resolve(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader,
String className)
Resolves a class with the specified name from the specified reader.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbyteArraySize, signedIntSize, signedLongSize, size, stringSize, unsignedIntSize, unsignedLongSizepublic ClassLoaderResolver(ClassLoader loader)
public void annotate(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
Class<?> targetClass)
throws IOException
ClassResolverannotate in interface ClassResolvercontext - a serialization contextwriter - a ProtoStream writertargetClass - the class to be annotatedIOExceptionpublic Class<?> resolve(org.infinispan.protostream.ImmutableSerializationContext context, org.infinispan.protostream.RawProtoStreamReader reader, String className) throws IOException
ClassResolverresolve in interface ClassResolvercontext - a serialization contextreader - a ProtoStream readerclassName - a class nameIOExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.