Files
spring-boot-demo/core-di/output/15-empty-collection.txt
T

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: []