asAutowireCandidate abstract method
Declares this pod as an autowire candidate with the given mode
.
The AutowireMode
determines how automatic dependency injection
should behave when resolving this pod.
Example
spec.asAutowireCandidate(AutowireMode.byType);
Implementation
Spec<T> asAutowireCandidate(AutowireMode mode);