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