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 TypeMethodDescriptionbooleanconfigure(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 contexttarget- the target instance such asEndpointorComponent.name- the property namevalue- the property valueignoreCase- whether to ignore case for matching the property name- Returns:
- true if the configurer configured the property, false if the property does not exists
-