Parent Directory | Revision Log
Add adapter (not used yet)
1 | torben | 1327 | package dk.thoerup.webconfig; |
2 | |||
3 | import java.util.Properties; | ||
4 | |||
5 | import javax.servlet.ServletContext; | ||
6 | |||
7 | public class ContextPropertyAdapter extends Properties { | ||
8 | |||
9 | private static final long serialVersionUID = 1L; | ||
10 | |||
11 | ServletContext context; | ||
12 | |||
13 | public ContextPropertyAdapter(ServletContext cxt) { | ||
14 | context = cxt; | ||
15 | } | ||
16 | |||
17 | @Override | ||
18 | public String getProperty(String name) { | ||
19 | return context.getInitParameter(name); | ||
20 | } | ||
21 | |||
22 | } |
ViewVC Help | |
Powered by ViewVC 1.1.20 |