Interface ContextFactory


public interface ContextFactory
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
    Creates a coordination context.
    void
    install(String coordinationTypeURI)
    Called when a context factory is added to a context factory mapper.
    void
    uninstall(String coordinationTypeURI)
    Called when a context factory is removed from a context factory mapper.
  • Method Details

    • install

      void install(String coordinationTypeURI)
      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 uri
      expires - the expire date/time for the returned context, can be null
      currentContext - the current coordination context, can be null
      Returns:
      the created coordination context
      Throws:
      InvalidCreateParametersException - if a parameter passed is invalid this activity identifier
    • uninstall

      void uninstall(String coordinationTypeURI)
      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