KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > core > SystemProperty


1 /**
2  *
3  * Magnolia and its source-code is licensed under the LGPL.
4  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6  * you are required to provide proper attribution to obinary.
7  * If you reproduce or distribute the document without making any substantive modifications to its content,
8  * please use the following attribution line:
9  *
10  * Copyright 1993-2005 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 package info.magnolia.cms.core;
14
15 import java.util.Hashtable JavaDoc;
16 import java.util.Map JavaDoc;
17
18
19 /**
20  * @author Sameer charles
21  * @version 2.0
22  */

23 public final class SystemProperty {
24
25     public static final String JavaDoc MAGNOLIA_REPOSITORIES_CONFIG = "magnolia.repositories.config"; //$NON-NLS-1$
26

27     public static final String JavaDoc MAGNOLIA_EXCHANGE_HISTORY = "magnolia.exchange.history"; //$NON-NLS-1$
28

29     public static final String JavaDoc MAGNOLIA_UPLOAD_TMPDIR = "magnolia.upload.tmpdir"; //$NON-NLS-1$
30

31     public static final String JavaDoc MAGNOLIA_CACHE_STARTDIR = "magnolia.cache.startdir"; //$NON-NLS-1$
32

33     public static final String JavaDoc MAGNOLIA_APP_ROOTDIR = "magnolia.app.rootdir"; //$NON-NLS-1$
34

35     public static final String JavaDoc MAGNOLIA_BOOTSTRAP_ROOTDIR = "magnolia.bootstrap.dir"; //$NON-NLS-1$
36

37     private static Map JavaDoc properties = new Hashtable JavaDoc();
38
39     /**
40      * Utility class, don't instantiate.
41      */

42     private SystemProperty() {
43         // unused
44
}
45
46     /**
47      * @param name
48      * @param value
49      */

50     public static void setProperty(String JavaDoc name, String JavaDoc value) {
51         SystemProperty.properties.put(name, value);
52     }
53
54     /**
55      * @param name
56      */

57     public static String JavaDoc getProperty(String JavaDoc name) {
58         return (String JavaDoc) SystemProperty.properties.get(name);
59     }
60
61     /**
62      *
63      */

64     public static Map JavaDoc getPropertyList() {
65         return SystemProperty.properties;
66     }
67 }
68
Popular Tags