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(CamelContext context,
String name) |
RegistryBean(Registry registry,
CamelContext context,
String name) |
| Modifier and Type | Method and Description |
|---|---|
protected BeanInfo |
createBeanInfo(Object bean) |
ConstantBeanHolder |
createCacheHolder()
Creates a cached and constant
BeanHolder from this holder. |
protected ParameterMappingStrategy |
createParameterMappingStrategy() |
Object |
getBean()
Gets the bean.
|
BeanInfo |
getBeanInfo()
Gets bean info for the bean.
|
BeanInfo |
getBeanInfo(Object bean)
Gets bean info for the given bean.
|
CamelContext |
getContext() |
String |
getName() |
ParameterMappingStrategy |
getParameterMappingStrategy() |
Processor |
getProcessor()
Gets a
Processor for this bean, if supported. |
Registry |
getRegistry() |
protected Object |
lookupBean() |
void |
setParameterMappingStrategy(ParameterMappingStrategy parameterMappingStrategy) |
boolean |
supportProcessor()
Whether a
Processor is supported by this bean holder. |
String |
toString() |
public RegistryBean(CamelContext context, String name)
public RegistryBean(Registry registry, CamelContext context, String name)
public ConstantBeanHolder createCacheHolder()
BeanHolder from this holder.BeanHolder that has cached the lookup of the bean.public Object getBean() throws NoSuchBeanException
BeanHoldergetBean in interface BeanHolderNoSuchBeanException - is thrown if the bean cannot be found.public 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 Registry getRegistry()
public CamelContext getContext()
public ParameterMappingStrategy getParameterMappingStrategy()
public void setParameterMappingStrategy(ParameterMappingStrategy parameterMappingStrategy)
protected BeanInfo createBeanInfo(Object bean)
protected ParameterMappingStrategy createParameterMappingStrategy()
protected Object lookupBean()
Apache Camel