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() |
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) |
String |
toString() |
public RegistryBean(CamelContext context, String name)
public RegistryBean(Registry registry, CamelContext context, String name)
public ConstantBeanHolder createCacheHolder() throws Exception
Exception
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 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