|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.portal.portlet.impl.state.StateConverterV0
public class StateConverterV0
An implementation that relies on the DataInputStream and DataOutputStream to marshall
and unmarshall the producer state. The marshalled value starts with a magic value and a version id to ensure future
backward compatibility.
It is an important matter because a migrated producer will probably have to take care of consumers that hold a previous version of the producer state.
| Constructor Summary | |
|---|---|
StateConverterV0()
|
|
| Method Summary | |
|---|---|
byte[] |
marshall(PortletState state)
Marshall the producer state as a byte array. |
PortletState |
unmarshall(byte[] marshalledState)
Unmarshall the producer state from a byte array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StateConverterV0()
| Method Detail |
|---|
public byte[] marshall(PortletState state)
throws StateConversionException
StateConverter
marshall in interface StateConverterstate - the producer state
StateConversionException - if marshalling cannot be performed
public PortletState unmarshall(byte[] marshalledState)
throws StateConversionException
StateConverter
unmarshall in interface StateConvertermarshalledState - the marshalled state
StateConversionException - if unmarshalling cannot be performed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||