org.infinispan.marshall.jboss.externalizers
Class ReplicableCommandExternalizer

java.lang.Object
  extended by org.infinispan.marshall.jboss.externalizers.ReplicableCommandExternalizer
All Implemented Interfaces:
Serializable, org.jboss.marshalling.Externalizer
Direct Known Subclasses:
StateTransferControlCommandExternalizer

@Immutable
public class ReplicableCommandExternalizer
extends Object
implements org.jboss.marshalling.Externalizer

ReplicableCommandExternalizer.

Since:
4.0
Author:
Galder ZamarreƱo
See Also:
Serialized Form

Constructor Summary
ReplicableCommandExternalizer()
           
 
Method Summary
 Object createExternal(Class<?> subjectType, ObjectInput input, org.jboss.marshalling.Creator defaultCreator)
          In this case, subjectType will contain the class name of the ReplicableCommand subclass to create.
 void readExternal(Object subject, ObjectInput input)
           
 void writeExternal(Object subject, ObjectOutput output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicableCommandExternalizer

public ReplicableCommandExternalizer()
Method Detail

writeExternal

public void writeExternal(Object subject,
                          ObjectOutput output)
                   throws IOException
Specified by:
writeExternal in interface org.jboss.marshalling.Externalizer
Throws:
IOException

createExternal

public Object createExternal(Class<?> subjectType,
                             ObjectInput input,
                             org.jboss.marshalling.Creator defaultCreator)
                      throws IOException,
                             ClassNotFoundException
In this case, subjectType will contain the class name of the ReplicableCommand subclass to create. Note that StateTransferControlCommand might need to be treated differently!!!

Specified by:
createExternal in interface org.jboss.marshalling.Externalizer
Throws:
IOException
ClassNotFoundException

readExternal

public void readExternal(Object subject,
                         ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface org.jboss.marshalling.Externalizer
Throws:
IOException
ClassNotFoundException


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.