Search in sources :

Example 1 with CloudPlatform

use of org.springframework.boot.cloud.CloudPlatform in project spring-boot by spring-projects.

the class OnCloudPlatformCondition method getMatchOutcome.

@Override
public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) {
    Map<String, Object> attributes = metadata.getAnnotationAttributes(ConditionalOnCloudPlatform.class.getName());
    CloudPlatform cloudPlatform = (CloudPlatform) attributes.get("value");
    return getMatchOutcome(context.getEnvironment(), cloudPlatform);
}
Also used : CloudPlatform(org.springframework.boot.cloud.CloudPlatform)

Aggregations

CloudPlatform (org.springframework.boot.cloud.CloudPlatform)1