类 HazelcastConfigResourceCondition
- java.lang.Object
- org.springframework.boot.autoconfigure.condition.SpringBootCondition
- org.springframework.boot.autoconfigure.condition.ResourceCondition
- org.springframework.boot.autoconfigure.hazelcast.HazelcastConfigResourceCondition
- 所有已实现的接口:
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.- 从以下版本开始:
- 1.3.0
构造器概要
构造器 限定符 构造器 说明 protectedHazelcastConfigResourceCondition(String prefix, String propertyName)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected ConditionOutcomegetResourceOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)Check if one of the default resource locations actually exists.从类继承的方法 org.springframework.boot.autoconfigure.condition.ResourceCondition
getMatchOutcome, startConditionMessage
从类继承的方法 org.springframework.boot.autoconfigure.condition.SpringBootCondition
anyMatches, logOutcome, matches, matches
构造器详细资料
HazelcastConfigResourceCondition
protected HazelcastConfigResourceCondition(String prefix, String propertyName)
方法详细资料
getResourceOutcome
protected ConditionOutcome getResourceOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
从类复制的说明:ResourceConditionCheck if one of the default resource locations actually exists.- 覆盖:
getResourceOutcome在类中ResourceCondition- 参数:
context- the condition contextmetadata- the annotation metadata- 返回:
- the condition outcome