T
- the type of classpublic abstract class SchematicExternalizer<T> extends Object implements Externalizer<T>
Externalizer
implementations.
There are two primary advantages of implementing AdvancedExternalizer
versus
implementing Externalizer
:
@SerializeWith
annotation. Since SchematicEntryLiteral
is our class, this is possible.AdvancedExternalizer
's identifier
instead of the class information
and/or the serialized Externalizer
. But for this to work, the advanced externalizers
need to be registered with the cache container at startup.AdvancedExternalizer
classes
for the cache container, and thus they cannot be used (see MODE-1524
for details). Therefore, we have to rely only upon implementing Externalizer
.
This abstract class was created so that the Schematic externalizers can easily extend it, but so that we can encapsulate in
this abstract class the use of Externalizer
or
AdvancedExternalizer
. Once Infinispan in AS7 supports user-defined advanced
externalizers, then we can simply change this class to implement AdvancedExternalizer
rather than Externalizer
.
Constructor and Description |
---|
SchematicExternalizer() |
Modifier and Type | Method and Description |
---|---|
abstract Integer |
getId() |
abstract Set<Class<? extends T>> |
getTypeClasses() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readObject, writeObject
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.