|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.component.bean.RegistryBean
public class RegistryBean
An implementation of a BeanHolder
which will look up a bean from the registry and act as a cache of its metadata
Constructor Summary | |
---|---|
RegistryBean(CamelContext context,
String name)
|
|
RegistryBean(Registry registry,
CamelContext context,
String name)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RegistryBean(CamelContext context, String name)
public RegistryBean(Registry registry, CamelContext context, String name)
Method Detail |
---|
public String toString()
toString
in class Object
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 bean
BeanHolder.getBeanInfo()
instead.public String getName()
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |