public static class PropertyBindingSupport.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
boolean |
bind(org.apache.camel.CamelContext camelContext,
Object target,
Map<String,Object> properties)
Binds the properties to the target object, and removes the property that was bound from properties.
|
PropertyBindingSupport.Builder |
withAllowPrivateSetter(boolean allowPrivateSetter)
Whether properties should be filtered by prefix.
|
PropertyBindingSupport.Builder |
withDeepNesting(boolean deepNesting)
Whether deep nesting is in use, where Camel will attempt to walk as deep as possible by creating new objects in the OGNL graph if
a property has a setter and the object can be created from a default no-arg constructor.
|
PropertyBindingSupport.Builder |
withFluentBuilder(boolean fluentBuilder)
Whether fluent builder is allowed as a valid getter/setter
|
PropertyBindingSupport.Builder |
withIgnoreCase(boolean ignoreCase)
Whether to ignore case in the property names (keys).
|
PropertyBindingSupport.Builder |
withNesting(boolean nesting)
Whether nesting is in use
|
PropertyBindingSupport.Builder |
withOptionPrefix(String optionPrefix)
Whether properties should be filtered by prefix.
|
PropertyBindingSupport.Builder |
withPlaceholder(boolean placeholder)
Whether to use Camels property placeholder to resolve placeholders on keys and values
|
PropertyBindingSupport.Builder |
withReference(boolean reference)
Whether reference parameter (syntax starts with #) is in use
|
public PropertyBindingSupport.Builder withNesting(boolean nesting)
public PropertyBindingSupport.Builder withDeepNesting(boolean deepNesting)
public PropertyBindingSupport.Builder withReference(boolean reference)
public PropertyBindingSupport.Builder withPlaceholder(boolean placeholder)
public PropertyBindingSupport.Builder withFluentBuilder(boolean fluentBuilder)
public PropertyBindingSupport.Builder withAllowPrivateSetter(boolean allowPrivateSetter)
public PropertyBindingSupport.Builder withIgnoreCase(boolean ignoreCase)
public PropertyBindingSupport.Builder withOptionPrefix(String optionPrefix)
public boolean bind(org.apache.camel.CamelContext camelContext, Object target, Map<String,Object> properties)
camelContext
- the camel contexttarget
- the target objectproperties
- the properties where the bound properties will be removed fromApache Camel