public final class CamelPropertiesHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
copyProperties(org.apache.camel.CamelContext camelContext,
Object source,
Object target) |
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 void copyProperties(org.apache.camel.CamelContext camelContext, Object source, Object target)
public static boolean setCamelProperties(org.apache.camel.CamelContext context, Object target, Map<String,Object> properties, boolean failIfNotSet)
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.Apache Camel