Class ChainDefinition

java.lang.Object
com.softwareag.connectivity.chainmanagers.ChainDefinition

public class ChainDefinition extends Object
A dynamic chain definition, providing the configuration for each plug-in in a chain. Can be used by a manager to create a chain.

This object is not thread-safe so synchronization should be used by the caller if it is to be mutated.

It is possible for a chain manager to modify a chain definition before using it to create a chain, though it is usually recommended to use an existing dynamic chain definition from the configuration without modification instead (that is, except for any string substitutions passed into the createChain call).

  • Constructor Details

  • Method Details

    • getChainDefinitionId

      public String getChainDefinitionId()
      Returns:
      the identifier used for this dynamic chain in the configuration
    • getPlugins

      Returns:
      the configuration and name of each plug-in in the chain, starting with the host and ending with the transport. This returns a reference (not a copy), so any changes made to the returned list will affect the chain definition itself.
    • getTransportConfig

      public Map<String,Object> getTransportConfig()
      Returns:
      the configuration associated with the transport at the end of this chain definition. This is a reference not a copy so any changes made to the returned value will affect the chain definition.
    • toString

      public String toString()
      Overrides:
      toString in class Object