KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > module > admininterface > Store


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-2006 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 package info.magnolia.module.admininterface;
14
15 import info.magnolia.cms.core.Content;
16
17 import org.slf4j.Logger;
18 import org.slf4j.LoggerFactory;
19
20
21 /**
22  * @author Sameer Charles
23  * @version 2.0
24  */

25 public class Store {
26
27     /**
28      * Logger.
29      */

30     protected static Logger log = LoggerFactory.getLogger(Store.class);
31
32     private static Store store = new Store();
33
34     public static Store getInstance() {
35         return Store.store;
36     }
37
38     private Content localStore;
39
40     protected Store() {
41     }
42
43     public Content getStore() {
44         return this.localStore;
45     }
46
47     public void setStore(Content localStore) {
48         this.localStore = localStore;
49     }
50
51 }
Popular Tags