public class ConstantTypeBeanHolder extends Object implements BeanTypeHolder
BeanTypeHolder| Constructor and Description |
|---|
ConstantTypeBeanHolder(Class<?> type,
BeanInfo beanInfo) |
ConstantTypeBeanHolder(Class<?> type,
org.apache.camel.CamelContext context) |
| Modifier and Type | Method and Description |
|---|---|
ConstantBeanHolder |
createCacheHolder()
Creates a cached and constant
BeanHolder from this holder. |
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. |
Class<?> |
getType() |
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 ConstantTypeBeanHolder(Class<?> type, org.apache.camel.CamelContext context)
public Map<String,Object> getOptions()
BeanHoldergetOptions in interface BeanHolderpublic void setOptions(Map<String,Object> options)
BeanHoldersetOptions in interface BeanHolderpublic ConstantBeanHolder createCacheHolder() throws Exception
BeanHolder from this holder.BeanHolder that has cached the lookup of the bean.Exceptionpublic 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.public Class<?> getType()
getType in interface BeanTypeHolderApache Camel