Package io.micronaut.context.condition
Interface Condition
- All Superinterfaces:
Predicate<ConditionContext>
- All Known Implementing Classes:
EndpointEnabledCondition,EpollAvailabilityCondition,FileWatchCondition,HeartbeatDiscoveryClientCondition,IoUringAvailabilityCondition,KQueueAvailabilityCondition,LoomSupport.LoomCondition,MatchesAbsenceOfBeansCondition,MatchesAbsenceOfClassesCondition,MatchesAbsenceOfClassNamesCondition,MatchesConfigurationCondition,MatchesCurrentNotOsCondition,MatchesCurrentOsCondition,MatchesCustomCondition,MatchesDynamicCondition,MatchesEnvironmentCondition,MatchesMissingPropertyCondition,MatchesNotEnvironmentCondition,MatchesPresenceOfBeansCondition,MatchesPresenceOfClassesCondition,MatchesPresenceOfEntitiesCondition,MatchesPresenceOfResourcesCondition,MatchesPropertyCondition,MatchesSdkCondition,NotInNativeImage,RefreshScopeCondition,RequiresCondition,TrueCondition
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A condition allows conditional loading of a
BeanConfiguration.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(ConditionContext context) Check whether a specific condition is met.default booleantest(ConditionContext condition)
-
Method Details
-
matches
Check whether a specific condition is met.- Parameters:
context- The condition context- Returns:
- True if has been met
-
test
- Specified by:
testin interfacePredicate<ConditionContext>
-