Spring ServletConfigPropertySource
- Author: HuiFer
源码阅读仓库: SourceHot-spring
类全路径:
org.springframework.web.context.support.ServletConfigPropertySource内部数据结构是
ServletConfig整体代码如下
public class ServletConfigPropertySource extends EnumerablePropertySource<ServletConfig> {public ServletConfigPropertySource(String name, ServletConfig servletConfig) {super(name, servletConfig);}@Overridepublic String[] getPropertyNames() {// javax.servlet.ServletConfig.getInitParameterNamesreturn StringUtils.toStringArray(this.source.getInitParameterNames());}@Override@Nullablepublic String getProperty(String name) {// javax.servlet.ServletConfig.getInitParameterreturn this.source.getInitParameter(name);}}
