Annotation 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
    Modifier and Type
    Optional Element
    Description
    Name of the bean
  • Element Details

    • value

      String value
      Name of the bean
      Default:
      ""