Annotation Interface BeanConfigInject
@Retention(RUNTIME)
@Documented
@Target({FIELD,METHOD,CONSTRUCTOR,PARAMETER})
public @interface BeanConfigInject
Marks a field, method, constructor, or parameter as an injection point for a configuration bean.
value() specifies the root property prefix (e.g. camel.component.mycomp). During bean
post-processing Camel first looks for an existing instance in the Registry; if none is
found it creates a new instance of the declared type and binds all matching properties from that prefix using Camel's
property-binding mechanism. This is the standard way to inject typed configuration objects into components and custom
services.- Since:
- 3.2
- See Also:
-
Required Element Summary
Required Elements
-
Element Details
-
value
String valueName of the root property (prefix)
-