Class DelegatingValidator

java.lang.Object
org.openehealth.ipf.platform.camel.core.closures.ClosureAdapter<Boolean>
org.openehealth.ipf.platform.camel.core.closures.DelegatingValidator
All Implemented Interfaces:
Validator<Object,Object>

public class DelegatingValidator extends ClosureAdapter<Boolean> implements Validator<Object,Object>
A validator that delegates to a Closure.
Author:
Martin Krasser
  • Constructor Details

    • DelegatingValidator

      public DelegatingValidator(Closure<Boolean> closure)
  • Method Details

    • validate

      public void validate(Object message, Object profile)
      Specified by:
      validate in interface Validator<Object,Object>
      Parameters:
      message - message to be validated
      profile - profile to be validated against