/[projects]/WebConfig/src/dk/thoerup/webconfig/ContextPropertyAdapter.java
ViewVC logotype

Annotation of /WebConfig/src/dk/thoerup/webconfig/ContextPropertyAdapter.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1327 - (hide annotations) (download)
Tue Apr 19 21:16:12 2011 UTC (13 years, 2 months ago) by torben
File size: 414 byte(s)
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