public class RequestBeanHolder extends Object implements BeanHolder
BeanHolder wrapper.| Constructor and Description |
|---|
RequestBeanHolder(BeanHolder holder) |
| 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. |
public RequestBeanHolder(BeanHolder holder)
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) throws org.apache.camel.NoSuchBeanException
BeanHoldergetBean in interface BeanHolderorg.apache.camel.NoSuchBeanException - is thrown if the bean cannot be found.public 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