public class RegistryBean extends Object implements BeanHolder
BeanHolder
which will look up a bean from the registry and act as a cache of its metadataConstructor 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
BeanHolder
getBean
in interface BeanHolder
NoSuchBeanException
- is thrown if the bean cannot be found.public Processor getProcessor()
BeanHolder
Processor
for this bean, if supported.getProcessor
in interface BeanHolder
Processor
, or null if not supported.public boolean supportProcessor()
BeanHolder
Processor
is supported by this bean holder.supportProcessor
in interface BeanHolder
public BeanInfo getBeanInfo()
BeanHolder
getBeanInfo
in interface BeanHolder
public BeanInfo getBeanInfo(Object bean)
BeanHolder
BeanHolder
implementations
such as the RegistryBean
.getBeanInfo
in interface BeanHolder
bean
- 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