Annotation Interface Conditional
Activates the annotated component only if all given
Conditions match.
Supported on services, Configuration classes,
Bean methods, commands, tab completers and event listeners.
Inactive services are ignored when discovering implementations, so several services can implement the same
interface as long as only one of them is active.
@Service
@Conditional(EconomyEnabled.class)
public class BuiltinEconomyService implements EconomyService { ... }
-
Required Element Summary
Required Elements
-
Element Details
-
value
The conditions that must all match.
-