public abstract class HazelcastConfigResourceCondition extends ResourceCondition
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.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
HAZELCAST_CONFIG_PROPERTY |
| Modifier | Constructor and Description |
|---|---|
protected |
HazelcastConfigResourceCondition(java.lang.String configSystemProperty,
java.lang.String... resourceLocations) |
| Modifier and Type | Method and Description |
|---|---|
protected ConditionOutcome |
getResourceOutcome(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.type.AnnotatedTypeMetadata metadata)
Check if one of the default resource locations actually exists.
|
getMatchOutcome, startConditionMessageanyMatches, logOutcome, matches, matchesprotected static final java.lang.String HAZELCAST_CONFIG_PROPERTY
protected HazelcastConfigResourceCondition(java.lang.String configSystemProperty,
java.lang.String... resourceLocations)
protected ConditionOutcome getResourceOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
ResourceConditiongetResourceOutcome in class ResourceConditioncontext - the condition contextmetadata - the annotation metadata