public static class PropertyBindingSupport.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
boolean |
bind()
Binds the properties to the target object, and removes the property that was bound from properties.
|
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.
|
boolean |
bind(org.apache.camel.CamelContext camelContext,
Object target,
String key,
Object value)
Binds the property to the target object.
|
PropertyBindingSupport.Builder |
withAllowPrivateSetter(boolean allowPrivateSetter)
Whether properties should be filtered by prefix.
|
PropertyBindingSupport.Builder |
withCamelContext(org.apache.camel.CamelContext camelContext)
CamelContext to be used
|
PropertyBindingSupport.Builder |
withConfigurer(org.apache.camel.spi.PropertyConfigurer configurer)
Whether to use the configurer to configure the properties.
|
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 |
withMandatory(boolean mandatory)
Whether all parameters should be mandatory and successfully bound
|
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 |
withProperties(Map<String,Object> properties)
The properties to use for binding
|
PropertyBindingSupport.Builder |
withProperty(String key,
Object value)
Adds property to use for binding
|
PropertyBindingSupport.Builder |
withReference(boolean reference)
Whether reference parameter (syntax starts with #) is in use
|
PropertyBindingSupport.Builder |
withRemoveParameters(boolean removeParameters)
Whether parameters should be removed when its bound
|
PropertyBindingSupport.Builder |
withTarget(Object target)
Target object that should have parameters bound
|
public PropertyBindingSupport.Builder withCamelContext(org.apache.camel.CamelContext camelContext)
public PropertyBindingSupport.Builder withTarget(Object target)
public PropertyBindingSupport.Builder withProperties(Map<String,Object> properties)
public PropertyBindingSupport.Builder withProperty(String key, Object value)
public PropertyBindingSupport.Builder withRemoveParameters(boolean removeParameters)
public PropertyBindingSupport.Builder withMandatory(boolean mandatory)
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 PropertyBindingSupport.Builder withConfigurer(org.apache.camel.spi.PropertyConfigurer configurer)
public boolean bind()
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 frompublic boolean bind(org.apache.camel.CamelContext camelContext, Object target, String key, Object value)
camelContext
- the camel contexttarget
- the target objectkey
- the property keyvalue
- the property valueApache Camel