Package com.arjuna.mw.wscf11.model.sagas
Class CoordinatorManagerFactory
java.lang.Object
com.arjuna.mw.wscf11.model.sagas.CoordinatorManagerFactory
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)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CoordinatorManager
static CoordinatorManager
coordinatorManager
(String protocol) Obtain a reference to a coordinator that implements the specified protocol.
-
Constructor Details
-
CoordinatorManagerFactory
public CoordinatorManagerFactory()
-
-
Method Details
-
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
-