
artoria.property.SpringEnvPropertySource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artoria-extend Show documentation
Show all versions of artoria-extend Show documentation
Artoria is a java technology framework based on the facade pattern.
The newest version!
package artoria.property;
import artoria.util.Assert;
import org.springframework.core.env.Environment;
import java.util.Map;
public class SpringEnvPropertySource extends BaseReadOnlyPropertySource {
private final Environment env;
public SpringEnvPropertySource(String name, Environment env) {
super(name);
Assert.notNull(env, "Parameter \"env\" must not null. ");
this.env = env;
}
@Override
public Map getProperties() {
throw new UnsupportedOperationException();
}
@Override
public boolean containsProperty(String name) {
return env.containsProperty(name);
}
@Override
public Object getProperty(String name) {
return env.getProperty(name);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy