public class ExternalizerTable extends Object implements ObjectTable
AdvancedExternalizer implementation that it marshall, and it also keeps information of which AdvancedExternalizer
should be used to read data from a buffer given a particular AdvancedExternalizer identifier.
These tables govern how either internal Infinispan classes, or user defined classes, are marshalled to a given
output, or how these are unmarshalled from a given input.ObjectTable.Writer| Constructor and Description |
|---|
ExternalizerTable() |
| Modifier and Type | Method and Description |
|---|---|
ObjectTable.Writer |
getObjectWriter(Object o)
Determine whether the given object reference is a valid predefined reference.
|
void |
inject(RemoteCommandsFactory cmdFactory,
GlobalComponentRegistry gcr,
StreamingMarshaller globalMarshaller) |
Object |
readObject(Unmarshaller input)
Read an instance from the stream.
|
void |
start() |
void |
stop() |
public void inject(RemoteCommandsFactory cmdFactory, GlobalComponentRegistry gcr, StreamingMarshaller globalMarshaller)
public void start()
public void stop()
public ObjectTable.Writer getObjectWriter(Object o) throws IOException
ObjectTablegetObjectWriter in interface ObjectTableo - the candidate objectnull to use the default mechanismIOException - if an I/O error occurspublic Object readObject(Unmarshaller input) throws IOException, ClassNotFoundException
ObjectTableObjectTable.getObjectWriter(Object) method's Writer instance, as defined above.readObject in interface ObjectTableinput - the unmarshaller to read fromIOException - if an I/O error occursClassNotFoundException - if a class could not be foundCopyright © 2012 JBoss by Red Hat. All Rights Reserved.