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:
org.springframework.context.annotation.Condition
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.- Since:
- 1.3.0
Constructor Summary
Constructors Modifier Constructor Description protected
HazelcastConfigResourceCondition(String configSystemProperty, String... resourceLocations)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.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
Constructor Detail
HazelcastConfigResourceCondition
protected HazelcastConfigResourceCondition(String configSystemProperty, String... resourceLocations)
Method Detail
getResourceOutcome
protected ConditionOutcome getResourceOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.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