@PetiteInject
. In our example, so far, container did not resolved the dependency since no annotation is used. To make previous example work, the Foo
class needs to mark the injection point:bar
bar
(ignored as equals to #1)org.jodd.Bar
@PetiteInject
annotation is method injection point. References will be injected through any number of method arguments:@PetiteInject
annotation, separated by a comma.Foo
class may be modified as:NONE
- no wiring, used in (rare) cases to prevent any possibleDEFAULT
- wiring mode is set by Petite container configuration.STRICT
- strict wiring affects only property injection points. When@PetiteInjection
) and throws an exception if required referenceOPTIONAL
- relaxed version of previous mode also inject intoAUTOWIRE
- tries to inject value in all bean fields. Missing