org.zeroexchange.flow.collaboration
Class DefaultContractFlow

java.lang.Object
  extended by org.zeroexchange.flow.collaboration.DefaultContractFlow
All Implemented Interfaces:
DataProcessor, EventProcessor<ContractChanged>, ContractFlow

@Transactional
public class DefaultContractFlow
extends Object
implements ContractFlow, EventProcessor<ContractChanged>, DataProcessor

The default implementation of the contract flow.

Author:
black

Constructor Summary
DefaultContractFlow()
           
 
Method Summary
protected  ContractStatus getNextContractStatus(Contract contract)
          Calculates the next status of the specified contract.
 Class<ContractChanged> getProcessingClass()
          Returns root hierarchy current processor can operate
 void onEvent(ContractChanged event)
          Is called when event occurred.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultContractFlow

public DefaultContractFlow()
Method Detail

getProcessingClass

public Class<ContractChanged> getProcessingClass()
Returns root hierarchy current processor can operate

Specified by:
getProcessingClass in interface DataProcessor

onEvent

public void onEvent(ContractChanged event)
Is called when event occurred.

Specified by:
onEvent in interface EventProcessor<ContractChanged>

getNextContractStatus

protected ContractStatus getNextContractStatus(Contract contract)
Calculates the next status of the specified contract.



Copyright © 2013. All Rights Reserved.