Package org.apache.camel.spi
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 Summary
Modifier and TypeMethodDescriptioncreateBindToRegistryFactory(String id, Object bean, Class<?> beanType, String beanName, boolean beanPostProcess, String initMethod, String destroyMethod) The task for binding the bean to the registry (egannotation
-
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 (egannotation- Parameters:
id- the bean idbean- the bean instancebeanType- the bean type (optional)beanName- the bean namebeanPostProcess- whether bean post processor should be performedinitMethod- 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
-