Interface PropertyConfigurer

All Known Subinterfaces:
GeneratedPropertyConfigurer

public interface PropertyConfigurer
Configures a single property on a target object (such as a Component, Endpoint, or EIP) without using reflection.

Camel generates a PropertyConfigurer implementation at build time for each configurable type, giving fast, reflection-free property binding during bootstrap. The configure(CamelContext, Object, String, Object, boolean) method sets one named property and reports whether the property was recognized, with optional case-insensitive name matching. Generated configurers implement GeneratedPropertyConfigurer, types that expose their configurer implement PropertyConfigurerAware, and configurers that can additionally describe their options implement PropertyConfigurerGetter.

See Property Binding in the Camel user manual.

Since:
3.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase)
    Configures the property
  • Method Details

    • configure

      boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase)
      Configures the property
      Parameters:
      camelContext - the Camel context
      target - the target instance such as Endpoint or Component.
      name - the property name
      value - the property value
      ignoreCase - whether to ignore case for matching the property name
      Returns:
      true if the configurer configured the property, false if the property does not exists