Class HazelcastConfigResourceCondition
java.lang.Object
org.springframework.boot.autoconfigure.condition.SpringBootCondition
org.springframework.boot.autoconfigure.condition.ResourceCondition
org.springframework.boot.autoconfigure.hazelcast.HazelcastConfigResourceCondition
- All Implemented Interfaces:
Condition
SpringBootCondition
used to check if the Hazelcast configuration is available.
This either kicks in if a default configuration has been found or if configurable
property referring to the resource to use has been set.- Since:
- 1.3.0
- Author:
- Stephane Nicoll, Madhura Bhave, Vedran Pavic
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
HazelcastConfigResourceCondition
(String configSystemProperty, String... resourceLocations) -
Method Summary
Modifier and TypeMethodDescriptionprotected ConditionOutcome
getResourceOutcome
(ConditionContext context, AnnotatedTypeMetadata metadata) Check if one of the default resource locations actually exists.Methods inherited from class org.springframework.boot.autoconfigure.condition.ResourceCondition
getMatchOutcome, startConditionMessage
Methods inherited from class org.springframework.boot.autoconfigure.condition.SpringBootCondition
anyMatches, logOutcome, matches, matches
-
Field Details
-
HAZELCAST_CONFIG_PROPERTY
- See Also:
-
-
Constructor Details
-
HazelcastConfigResourceCondition
-
-
Method Details
-
getResourceOutcome
protected ConditionOutcome getResourceOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) Description copied from class:ResourceCondition
Check if one of the default resource locations actually exists.- Overrides:
getResourceOutcome
in classResourceCondition
- Parameters:
context
- the condition contextmetadata
- the annotation metadata- Returns:
- the condition outcome
-