public final class CamelPropertiesHelper extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
setCamelProperties(org.apache.camel.CamelContext context,
Object target,
Map<String,Object> properties,
boolean failIfNotSet)
Sets the properties on the target bean.
|
public static boolean setCamelProperties(org.apache.camel.CamelContext context, Object target, Map<String,Object> properties, boolean failIfNotSet) throws Exception
PropertyBindingSupport
and therefore offers its capabilities such as:
context
- the CamelContexttarget
- the target beanproperties
- the propertiesfailIfNotSet
- whether to fail if an option either does not exists on the target bean or if the option cannot be due no suitable setter methods with the given typeIllegalArgumentException
- is thrown if an option cannot be configured on the bean because there is no suitable setter method and failOnNoSet is true.Exception
- for any other kind of errorApache Camel