oemware.core.chain
Class ChainManager

java.lang.Object
  extended by oemware.core.chain.ChainManager

public final class ChainManager
extends java.lang.Object

The chain manager. This handles a group of chains and can execute them on demand.


Constructor Summary
ChainManager(java.lang.String pName, java.util.Map<java.lang.String,java.lang.String> pCatalogs)
          Construct a new object with the catalogs passed.
 
Method Summary
 org.apache.commons.chain.Context executeChain(java.lang.String pCatalogName, java.lang.String pChainName)
          Execute a chain.
 void executeChain(java.lang.String pCatalogName, java.lang.String pChainName, org.apache.commons.chain.Context pContext)
          Execute a chain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainManager

public ChainManager(java.lang.String pName,
                    java.util.Map<java.lang.String,java.lang.String> pCatalogs)
             throws ServiceException
Construct a new object with the catalogs passed.

Parameters:
pName - The name of this chain.
pCatalogs - The string mapping to the resource/file name.
Throws:
ServiceException
Method Detail

executeChain

public final org.apache.commons.chain.Context executeChain(java.lang.String pCatalogName,
                                                           java.lang.String pChainName)
                                                    throws ServiceException
Execute a chain.

Parameters:
pCatalogName - The catalog name.
pChainName - The chain name.
Throws:
ServiceException

executeChain

public final void executeChain(java.lang.String pCatalogName,
                               java.lang.String pChainName,
                               org.apache.commons.chain.Context pContext)
                        throws ServiceException
Execute a chain.

Parameters:
pCatalogName - The catalog name.
pChainName - The chain name.
pContext - The context object.
Throws:
ServiceException


Copyright © 2009 Deft Labs - Released under LGPL, Version 3.0