Parent Directory
|
Revision Log
First iteration on config loader system
1 | torben | 1339 | package dk.thoerup.webconfig; |
2 | |||
3 | import javax.servlet.ServletContext; | ||
4 | |||
5 | public class ContextConfigLoader extends ConfigLoader { | ||
6 | |||
7 | ServletContext cxt; | ||
8 | |||
9 | public ContextConfigLoader(ServletContext cxt) { | ||
10 | this.cxt = cxt; | ||
11 | } | ||
12 | |||
13 | @Override | ||
14 | public String getValue(String paramName) { | ||
15 | return cxt.getInitParameter(paramName); | ||
16 | } | ||
17 | |||
18 | } |
ViewVC Help | |
Powered by ViewVC 1.1.20 |