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
SpringBootConditionused 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 protectedHazelcastConfigResourceCondition(String prefix, String propertyName)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConditionOutcomegetResourceOutcome(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 prefix, String propertyName)
Method Detail
getResourceOutcome
protected ConditionOutcome getResourceOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
Description copied from class:ResourceConditionCheck if one of the default resource locations actually exists.- Overrides:
getResourceOutcomein classResourceCondition- Parameters:
context- the condition contextmetadata- the annotation metadata- Returns:
- the condition outcome