Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JoVmf2fWvcpoXndcDSwRf7
17 lines
1.0 KiB
Plaintext
17 lines
1.0 KiB
Plaintext
# A List<Plugin> injection point when zero Plugin beans exist
|
|
|
|
|
|
--- required List<Plugin>, zero Plugin beans ---
|
|
single constructor param : started (empty list injected)
|
|
@Autowired ctor + no-arg ctor : started (empty list injected)
|
|
FieldInjected : FAILED NoSuchBeanDefinitionException
|
|
No qualifying bean of type 'java.util.List<com.ankurm.coredi.resolution.Plugin>' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
|
|
SetterInjected : FAILED NoSuchBeanDefinitionException
|
|
No qualifying bean of type 'java.util.List<com.ankurm.coredi.resolution.Plugin>' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
|
|
|
|
--- ways to make an absent collection legal ---
|
|
Optional<List<Plugin>> : isPresent=false
|
|
@Nullable List<Plugin> : value=null
|
|
ObjectProvider<Plugin> -> list : []
|
|
@Autowired(required=false) list: []
|