All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openl.spring.env.SysPropPropertySource Maven / Gradle / Ivy

The newest version!
package org.openl.spring.env;

import java.util.Map;

import org.springframework.core.env.MapPropertySource;
import org.springframework.core.env.StandardEnvironment;

/**
 * A specialized property source for the system properties are loaded from  {@link System#getProperties()}
 *
 * @author Yury Molchan
 */
public class SysPropPropertySource extends MapPropertySource {
    /**
     * Create a new {@code MapPropertySource} with the given name and {@code Map}.
     *
     * @param source the Map source (without {@code null} values in order to get
     *               consistent {@link #getProperty} and {@link #containsProperty} behavior)
     */
    public SysPropPropertySource(Map source) {
        super(StandardEnvironment.SYSTEM_PROPERTIES_PROPERTY_SOURCE_NAME, source);
        ConfigLog.LOG.info("Loading System Properties parameters: {} properties.", getPropertyNames().length);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy