com.arjuna.mw.wscf11.model.sagas
Class CoordinatorManagerFactory
java.lang.Object
com.arjuna.mw.wscf11.model.sagas.CoordinatorManagerFactory
public class CoordinatorManagerFactory
- extends Object
The factory to return the specific CoordinatorManager implementation.
- Since:
- 1.0.
- Version:
- $Id: CoordinatorManagerFactory.java,v 1.4 2005/05/19 12:13:23 nmcl Exp $
- Author:
- Mark Little (mark.little@arjuna.com)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoordinatorManagerFactory
public CoordinatorManagerFactory()
coordinatorManager
public static CoordinatorManager coordinatorManager()
throws ProtocolNotRegisteredException,
SystemException
- Returns:
- the CoordinatorManager implementation to use. The default
coordination protocol is used (two-phase commit) with its
associated implementation.
- Throws:
ProtocolNotRegisteredException
- Thrown if the default
protocol is not available.
SystemException
coordinatorManager
public static CoordinatorManager coordinatorManager(String protocol)
throws ProtocolNotRegisteredException,
SystemException
- Obtain a reference to a coordinator that implements the specified
protocol.
- Parameters:
protocol
- The XML definition of the type of
coordination protocol required.
- Returns:
- the CoordinatorManager implementation to use.
- Throws:
ProtocolNotRegisteredException
- Thrown if the requested
protocol is not available.
SystemException
Copyright © 2012. All Rights Reserved.