public class RegistryBean extends Object implements BeanHolder
BeanHolder which will look up a bean from the registry and act as a cache of its
metadata| Constructor and Description |
|---|
RegistryBean(org.apache.camel.CamelContext context,
String name,
ParameterMappingStrategy parameterMappingStrategy,
BeanComponent beanComponent) |
| Modifier and Type | Method and Description |
|---|---|
protected BeanInfo |
createBeanInfo(Object bean) |
ConstantBeanHolder |
createCacheHolder()
Creates a singleton (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.
|
org.apache.camel.CamelContext |
getContext() |
String |
getName() |
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. |
org.apache.camel.spi.Registry |
getRegistry() |
protected Object |
lookupBean() |
void |
setErrorHandler(org.apache.camel.Processor errorHandler)
Sets error handler used by @RecipientList EIP
|
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 RegistryBean(org.apache.camel.CamelContext context,
String name,
ParameterMappingStrategy parameterMappingStrategy,
BeanComponent beanComponent)
public void setErrorHandler(org.apache.camel.Processor errorHandler)
BeanHoldersetErrorHandler in interface BeanHoldererrorHandler - the error handlerpublic Map<String,Object> getOptions()
BeanHoldergetOptions in interface BeanHolderpublic void setOptions(Map<String,Object> options)
BeanHoldersetOptions in interface BeanHolderpublic ConstantBeanHolder createCacheHolder()
BeanHolder from this holder.public 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.public String getName()
public org.apache.camel.spi.Registry getRegistry()
public org.apache.camel.CamelContext getContext()
protected Object lookupBean()
Apache Camel