com.arjuna.mw.wscf11.model.sagas
Class UserCoordinatorFactory
java.lang.Object
com.arjuna.mw.wscf11.model.sagas.UserCoordinatorFactory
public class UserCoordinatorFactory
- extends Object
The factory which returns the UserCoordinator implementation to use.
- Since:
- 1.0.
- Version:
- $Id: UserCoordinatorFactory.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 |
UserCoordinatorFactory
public UserCoordinatorFactory()
userCoordinator
public static UserCoordinator userCoordinator()
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
userCoordinator
public static UserCoordinator userCoordinator(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.