public class ConstantBeanHolder extends Object implements BeanHolder
BeanHolder| Constructor and Description |
|---|
ConstantBeanHolder(Object bean,
BeanInfo beanInfo) |
ConstantBeanHolder(Object bean,
org.apache.camel.CamelContext context,
ParameterMappingStrategy parameterMappingStrategy,
BeanComponent beanComponent) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getBean(org.apache.camel.Exchange exchange)
Gets the bean.
|
BeanInfo |
getBeanInfo()
Gets bean info for the bean.
|
BeanInfo |
getBeanInfo(Object bean)
Gets bean info for the given bean.
|
Map<String,Object> |
getOptions()
Additional options that should be configured on the bean
|
org.apache.camel.Processor |
getProcessor()
Gets a
Processor for this bean, if supported. |
void |
setOptions(Map<String,Object> options)
Sets additional options that should be configured on the bean
|
boolean |
supportProcessor()
Whether a
Processor is supported by this bean holder. |
String |
toString() |
public ConstantBeanHolder(Object bean, org.apache.camel.CamelContext context, ParameterMappingStrategy parameterMappingStrategy, BeanComponent beanComponent)
public Map<String,Object> getOptions()
BeanHoldergetOptions in interface BeanHolderpublic void setOptions(Map<String,Object> options)
BeanHoldersetOptions in interface BeanHolderpublic Object getBean(org.apache.camel.Exchange exchange)
BeanHoldergetBean in interface BeanHolderpublic org.apache.camel.Processor getProcessor()
BeanHolderProcessor for this bean, if supported.getProcessor in interface BeanHolderProcessor, or null if not supported.public boolean supportProcessor()
BeanHolderProcessor is supported by this bean holder.supportProcessor in interface BeanHolderpublic BeanInfo getBeanInfo()
BeanHoldergetBeanInfo in interface BeanHolderpublic BeanInfo getBeanInfo(Object bean)
BeanHolderBeanHolder implementations such as the
RegistryBean.getBeanInfo in interface BeanHolderbean - the beanBeanHolder.getBeanInfo() instead.Apache Camel