Example usage for org.springframework.core.env PropertySources contains

List of usage examples for org.springframework.core.env PropertySources contains

Introduction

In this page you can find the example usage for org.springframework.core.env PropertySources contains.

Prototype

boolean contains(String name);

Source Link

Document

Return whether a property source with the given name is contained.

Usage

From source file:org.cloudfoundry.reconfiguration.spring.CloudPropertySourceApplicationContextInitializer.java

private boolean hasCloudPropertySource(PropertySources propertySources) {
    return propertySources.contains(CLOUD_PROPERTY_SOURCE);
}