Class ConstantTypeBeanHolder

    • Constructor Detail

      • ConstantTypeBeanHolder

        public ConstantTypeBeanHolder​(Class<?> type,
                                      BeanInfo beanInfo)
    • Method Detail

      • setErrorHandler

        public void setErrorHandler​(org.apache.camel.Processor errorHandler)
        Description copied from interface: BeanHolder
        Sets error handler used by @RecipientList EIP
        Specified by:
        setErrorHandler in interface BeanHolder
        Parameters:
        errorHandler - the error handler
      • setOptions

        public void setOptions​(Map<String,​Object> options)
        Description copied from interface: BeanHolder
        Sets additional options that should be configured on the bean
        Specified by:
        setOptions in interface BeanHolder
      • createCacheHolder

        public ConstantBeanHolder createCacheHolder()
        Creates a cached and constant BeanHolder from this holder.
        Returns:
        a new BeanHolder that has cached the lookup of the bean.
      • getBean

        public Object getBean​(org.apache.camel.Exchange exchange)
        Description copied from interface: BeanHolder
        Gets the bean.
        Specified by:
        getBean in interface BeanHolder
      • getProcessor

        public org.apache.camel.Processor getProcessor()
        Description copied from interface: BeanHolder
        Gets a Processor for this bean, if supported.
        Specified by:
        getProcessor in interface BeanHolder
        Returns:
        the Processor, or null if not supported.
      • supportProcessor

        public boolean supportProcessor()
        Description copied from interface: BeanHolder
        Whether a Processor is supported by this bean holder.
        Specified by:
        supportProcessor in interface BeanHolder
        Returns:
        true if the holder can supporting using a processor, false otherwise