Annotation Interface BeanInject
@Retention(RUNTIME)
@Documented
@Target({FIELD,METHOD,CONSTRUCTOR,PARAMETER})
public @interface BeanInject
Marks a field, method, constructor, or parameter as an injection point for a bean obtained from the Camel
Registry.
When Camel performs bean post-processing it resolves the injection by looking up the registry: by name if
value() is set, or by type if no name is provided. The resolved bean is then injected at the annotated site.
If no matching bean is found an exception is thrown at startup.- Since:
- 3.2
- See Also:
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
-