Interface CamelDependencyInjectionAnnotationFactory


public interface CamelDependencyInjectionAnnotationFactory
A factory which performs the task from Camel dependency injection annotations on a field, property or method parameter of a specified type.
  • Method Details

    • createBindToRegistryFactory

      Runnable createBindToRegistryFactory(String id, Object bean, Class<?> beanType, String beanName, boolean beanPostProcess, String initMethod, String destroyMethod)
      The task for binding the bean to the registry (eg annotation
      Parameters:
      id - the bean id
      bean - the bean instance
      beanType - the bean type (optional)
      beanName - the bean name
      beanPostProcess - whether bean post processor should be performed
      initMethod - optional init method (invoked at bind)
      destroyMethod - optional destroy method (invoked at unbind or stopping Camel)
      Returns:
      the created task to use for binding the bean