org.apache.camel.component.bean
Class RegistryBean

java.lang.Object
  extended by org.apache.camel.component.bean.RegistryBean
All Implemented Interfaces:
BeanHolder
Direct Known Subclasses:
EjbRegistryBean, RmiRegistryBean

public class RegistryBean
extends Object
implements BeanHolder

An implementation of a BeanHolder which will look up a bean from the registry and act as a cache of its metadata

Version:

Constructor Summary
RegistryBean(CamelContext context, String name)
           
RegistryBean(Registry registry, CamelContext context, String name)
           
 
Method Summary
protected  BeanInfo createBeanInfo()
           
 ConstantBeanHolder createCacheHolder()
           
protected  ParameterMappingStrategy createParameterMappingStrategy()
           
 Object getBean()
           
 BeanInfo getBeanInfo()
           
 CamelContext getContext()
           
 String getName()
           
 ParameterMappingStrategy getParameterMappingStrategy()
           
 Processor getProcessor()
           
 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

RegistryBean

public RegistryBean(CamelContext context,
                    String name)

RegistryBean

public RegistryBean(Registry registry,
                    CamelContext context,
                    String name)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

createCacheHolder

public ConstantBeanHolder createCacheHolder()
                                     throws Exception
Throws:
Exception

getBean

public Object getBean()
               throws NoSuchBeanException
Specified by:
getBean in interface BeanHolder
Throws:
NoSuchBeanException

getProcessor

public Processor getProcessor()
Specified by:
getProcessor in interface BeanHolder

getBeanInfo

public BeanInfo getBeanInfo()
Specified by:
getBeanInfo in interface BeanHolder

getName

public String getName()

getRegistry

public Registry getRegistry()

getContext

public CamelContext getContext()

getParameterMappingStrategy

public ParameterMappingStrategy getParameterMappingStrategy()

setParameterMappingStrategy

public void setParameterMappingStrategy(ParameterMappingStrategy parameterMappingStrategy)

createBeanInfo

protected BeanInfo createBeanInfo()

createParameterMappingStrategy

protected ParameterMappingStrategy createParameterMappingStrategy()

lookupBean

protected Object lookupBean()


Apache CAMEL