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

com.swak.core.environment.SwakEnvPropertySource Maven / Gradle / Ivy

The newest version!
package com.swak.core.environment;

import org.springframework.core.env.MapPropertySource;

import java.util.HashMap;
import java.util.Map;

/**
 * SwakEnvPropertySource.java
 *
 * @author colley.ma
 * @since 3.0.0
 */
public class SwakEnvPropertySource extends MapPropertySource {

    public SwakEnvPropertySource(String name, Map source) {
        super(name, source);
    }

    public SwakEnvPropertySource(Map source) {
        super("SWAK-ENV", source);
    }

    public SwakEnvPropertySource() {
        super("SWAK-ENV", new HashMap<>());
    }
    public SwakEnvPropertySource put(String name, Object value) {
        super.source.put(name, value);
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy