Package com.arjuna.wsc11
Interface ContextFactory
public interface ContextFactory
-
Method Summary
Modifier and TypeMethodDescriptionorg.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContext
create
(String coordinationTypeURI, Long expires, org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType currentContext, boolean isSecure) Creates a coordination context.void
Called when a context factory is added to a context factory mapper.void
Called when a context factory is removed from a context factory mapper.
-
Method Details
-
install
Called when a context factory is added to a context factory mapper. This method will be called multiple times if the context factory is added to multiple context factory mappers or to the same context mapper with different protocol identifiers.- Parameters:
coordinationTypeURI
- the coordination type uri
-
create
org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContext create(String coordinationTypeURI, Long expires, org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType currentContext, boolean isSecure) throws InvalidCreateParametersException Creates a coordination context.- Parameters:
coordinationTypeURI
- the coordination type uriexpires
- the expire date/time for the returned context, can be nullcurrentContext
- the current coordination context, can be null- Returns:
- the created coordination context
- Throws:
InvalidCreateParametersException
- if a parameter passed is invalid this activity identifier
-
uninstall
Called when a context factory is removed from a context factory mapper. This method will be called multiple times if the context factory is removed from multiple context factory mappers or from the same context factory mapper with different coordination type uris.- Parameters:
coordinationTypeURI
- the coordination type uri
-