Class ChainableImpl

java.lang.Object
org.openehealth.ipf.commons.ihe.core.chain.ChainableImpl
All Implemented Interfaces:
Chainable
Direct Known Subclasses:
InterceptorSupport

public abstract class ChainableImpl extends Object implements Chainable
Base for an element of a chain.
Author:
Dmytro Rud
  • Constructor Details

    • ChainableImpl

      public ChainableImpl()
  • Method Details

    • setId

      public void setId(String id)
      Sets the ID of this chain element.
      Parameters:
      id - ID of this chain element.
    • getId

      public String getId()
      Specified by:
      getId in interface Chainable
      Returns:
      ID of this chain element.
    • addBefore

      public void addBefore(String... ids)
      Configures this chain element to be deployed before the given ones.
      Parameters:
      ids - IDs of chain elements this chain element should be deployed before.
    • addAfter

      public void addAfter(String... ids)
      Configures this chain element to be deployed after the given ones.
      Parameters:
      ids - IDs of chain elements this chain element should be deployed after.
    • getBefore

      public Set<String> getBefore()
      Specified by:
      getBefore in interface Chainable
      Returns:
      IDs of chain elements this chain element will be/has been deployed before.
    • getAfter

      public Set<String> getAfter()
      Specified by:
      getAfter in interface Chainable
      Returns:
      IDs of chain elements this chain element will be/has been deployed after.