java.lang.Object
org.openehealth.ipf.platform.camel.core.adapter.StaticParams
All Implemented Interfaces:
Expression

public class StaticParams extends Object implements Expression
An expression that evaluates to a constant parameter array inpdependent of the Exchange argument.
Author:
Martin Krasser
  • Constructor Details

    • StaticParams

      public StaticParams(Object... params)
      Creates a new StaticParams expression.
      Parameters:
      params - the constant evaluation result.
  • Method Details

    • evaluate

      public <T> T evaluate(Exchange exchange, Class<T> type)
      Evaluates to the params array used to construct this expression.
      Specified by:
      evaluate in interface Expression
      Parameters:
      exchange - ignored.
      type - ignored.