KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > applications > media > urlcomposers > Config


1 /*
2   
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5   
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8   
9 */

10
11 package org.mmbase.applications.media.urlcomposers;
12 import java.util.ResourceBundle JavaDoc;
13
14
15 /**
16  * Some url-composers need to know where templates are. Put a properties file in classes.
17  *
18  * @author Michiel Meeuwissen
19  * @version $Id: Config.java,v 1.5 2005/05/14 14:07:42 nico Exp $
20  */

21
22 public class Config {
23
24     // should perhaps be changed to XML, but this is easier for the moment. No time, no time!
25

26
27     public static final String JavaDoc templatesDir;
28     public static final String JavaDoc host;
29     public static final String JavaDoc editwizardsDir;
30     static {
31         ResourceBundle JavaDoc manager = ResourceBundle.getBundle("org.mmbase.applications.media.resources.config");
32         templatesDir = manager.getString("templatesDir");
33         host = manager.getString("host");
34         editwizardsDir = manager.getString("editwizardsDir");
35     }
36
37 }
38
Popular Tags