org.apache.camel.component.bean
Interface BeanHolder

All Known Subinterfaces:
BeanTypeHolder
All Known Implementing Classes:
ConstantBeanHolder, ConstantTypeBeanHolder, RegistryBean

public interface BeanHolder

Object holder for a bean.

Version:

Method Summary
 Object getBean()
          Gets the bean.
 BeanInfo getBeanInfo()
          Gets bean info for the bean.
 BeanInfo getBeanInfo(Object bean)
          Gets bean info for the given bean.
 Processor getProcessor()
          Gets a Processor for this bean, if supported.
 

Method Detail

getBean

Object getBean()
               throws NoSuchBeanException
Gets the bean.

Throws:
NoSuchBeanException - is thrown if the bean cannot be found.

getProcessor

Processor getProcessor()
Gets a Processor for this bean, if supported.

Returns:
the Processor, or null if not supported.

getBeanInfo

BeanInfo getBeanInfo()
Gets bean info for the bean.


getBeanInfo

BeanInfo getBeanInfo(Object bean)
Gets bean info for the given bean.

This implementation allows a thread safe usage for BeanHolder implementations such as the RegistryBean.

Parameters:
bean - the bean
Returns:
null if not supported, then use getBeanInfo() instead.


Apache CAMEL