Example usage for org.springframework.core.env ConfigurableEnvironment getProperty

List of usage examples for org.springframework.core.env ConfigurableEnvironment getProperty

Introduction

In this page you can find the example usage for org.springframework.core.env ConfigurableEnvironment getProperty.

Prototype

<T> T getProperty(String key, Class<T> targetType, T defaultValue);

Source Link

Document

Return the property value associated with the given key, or defaultValue if the key cannot be resolved.

Usage

From source file:at.ac.univie.isc.asio.spring.JerseyLogInitializer.java

private boolean debugModeEnabled(final ConfigurableEnvironment environment) {
    return environment.containsProperty(GLOBAL_DEBUG_FLAG)
            || environment.getProperty(JERSEY_DEBUG_FLAG, Boolean.class, false);
}