Interface MergingActivityConfiguration

All Superinterfaces:
ActivityConfiguration, Configuration, MergingConfiguration, Serializable

public interface MergingActivityConfiguration extends MergingConfiguration, ActivityConfiguration
This class merges several activity configurations to one configuration. All configurations are managed in a list. When retrieving a configuration value (or from a parameter of from a process configuration), the list is iterated and the first non-null value is returned.
Author:
Ulrich Kreher
  • Field Details

    • serialVersionUID

      static final long serialVersionUID
      Generated ID for serialisation.
      See Also:
  • Method Details

    • getConfigurations

      List<ActivityConfiguration> getConfigurations()
      Gets a copy of the list of all configurations that are merged by this MergingConfiguration. Prior configurations override later ones.
      Specified by:
      getConfigurations in interface MergingConfiguration
      Returns:
      A list of all configurations that are merged by this MergingConfiguration.
    • addFirst

      void addFirst(ActivityConfiguration configuration)
      Adds the designated configuration as the first configuration that overrides the other configurations.
      Parameters:
      configuration - The configuration to override the other configurations in this MergingConfiguration.
    • addLast

      void addLast(ActivityConfiguration configuration)
      Adds the designated configuration as the last configuration that is overridden by all other configurations.
      Parameters:
      configuration - The configuration that is overridden by all other configurations in this MergingConfiguration.
    • getMergedConfiguration

      ActivityConfiguration getMergedConfiguration()
      Gets one configuration containing the merged values, that is the list of configurations is merged to a single configuration. This allows for better performance than this MergingConfiguration.
      Specified by:
      getMergedConfiguration in interface MergingConfiguration
      Returns:
      One configuration containing the merged values of all configurations of this MergingConfiguration.