shocks.framework.workflow.sequence.repository
Class SequenceRepositoryProxy

java.lang.Object
  extended byshocks.framework.workflow.sequence.repository.SequenceRepositoryProxy
All Implemented Interfaces:
SequenceRepository

public class SequenceRepositoryProxy
extends java.lang.Object
implements SequenceRepository


Constructor Summary
SequenceRepositoryProxy(javax.management.ObjectName objName)
           
 
Method Summary
 void addWorkflow(Workflow sequence)
          Returns the current operating version of a workflow sequence.
 Workflow leaseWorkflow(DataSource metadata)
          Leases a workflow component from the instance pool.
 void release(Workflow sequence)
          Releases a leased workflow component back into the instance pool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceRepositoryProxy

public SequenceRepositoryProxy(javax.management.ObjectName objName)
Method Detail

leaseWorkflow

public Workflow leaseWorkflow(DataSource metadata)
Description copied from interface: SequenceRepository

Leases a workflow component from the instance pool. This component should be released back into the instance pool once it is no longer needed.

Specified by:
leaseWorkflow in interface SequenceRepository
Parameters:
metadata -
Returns:
Workflow representing the coming sequence of events

release

public void release(Workflow sequence)
Description copied from interface: SequenceRepository

Releases a leased workflow component back into the instance pool. The method will sort the workflow component by name and version.

Specified by:
release in interface SequenceRepository
Parameters:
sequence -

addWorkflow

public void addWorkflow(Workflow sequence)
Description copied from interface: SequenceRepository

Returns the current operating version of a workflow sequence. Each workflow sequence is identified by a metadata component whose values amount to a composite key.

Specified by:
addWorkflow in interface SequenceRepository
Parameters:
sequence -