org.springframework.webflow.execution.repository.continuation
Class SerializedFlowExecutionContinuationFactory

java.lang.Object
  extended by org.springframework.webflow.execution.repository.continuation.SerializedFlowExecutionContinuationFactory
All Implemented Interfaces:
FlowExecutionContinuationFactory

public class SerializedFlowExecutionContinuationFactory
extends java.lang.Object
implements FlowExecutionContinuationFactory

A factory that creates new instances of flow execution continuations based on standard Java serialization.

Author:
Keith Donald, Erwin Vervaet
See Also:
SerializedFlowExecutionContinuation

Constructor Summary
SerializedFlowExecutionContinuationFactory()
           
 
Method Summary
 FlowExecutionContinuation createContinuation(byte[] bytes)
          Creates a new flow execution continuation from the provided byte array.
 FlowExecutionContinuation createContinuation(FlowExecution flowExecution)
          Creates a new flow execution continuation for given flow execution.
 boolean getCompress()
          Returns whether or not the continuations should be compressed.
 void setCompress(boolean compress)
          Set whether or not the continuations should be compressed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializedFlowExecutionContinuationFactory

public SerializedFlowExecutionContinuationFactory()
Method Detail

getCompress

public boolean getCompress()
Returns whether or not the continuations should be compressed.


setCompress

public void setCompress(boolean compress)
Set whether or not the continuations should be compressed.


createContinuation

public FlowExecutionContinuation createContinuation(FlowExecution flowExecution)
                                             throws ContinuationCreationException
Description copied from interface: FlowExecutionContinuationFactory
Creates a new flow execution continuation for given flow execution.

Specified by:
createContinuation in interface FlowExecutionContinuationFactory
Parameters:
flowExecution - the flow execution
Returns:
the continuation
Throws:
ContinuationCreationException - when the continuation cannot be created

createContinuation

public FlowExecutionContinuation createContinuation(byte[] bytes)
                                             throws ContinuationUnmarshalException
Description copied from interface: FlowExecutionContinuationFactory
Creates a new flow execution continuation from the provided byte array.

Specified by:
createContinuation in interface FlowExecutionContinuationFactory
Parameters:
bytes - the flow execution byte array
Returns:
the continuation
Throws:
ContinuationUnmarshalException


Copyright © 2009 Spring Framework. All Rights Reserved.