com.github.datalking.common.env.ServletConfigPropertySource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of play-mvc Show documentation
Show all versions of play-mvc Show documentation
simple mvc framework based on java servlet.
The newest version!
package com.github.datalking.common.env;
import com.github.datalking.util.StringUtils;
import javax.servlet.ServletConfig;
/**
* @author yaoo on 5/30/18
*/
public class ServletConfigPropertySource extends EnumerablePropertySource {
public ServletConfigPropertySource(String name, ServletConfig servletConfig) {
super(name, servletConfig);
}
@Override
public String[] getPropertyNames() {
return StringUtils.toStringArray(this.source.getInitParameterNames());
}
@Override
public String getProperty(String name) {
return this.source.getInitParameter(name);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy