KickJava   Java API By Example, From Geeks To Geeks.

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


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.gui.controlx.RenderKitFactory;
16 import info.magnolia.cms.module.RegisterException;
17
18 import org.slf4j.Logger;
19 import org.slf4j.LoggerFactory;
20
21
22 /**
23  * @author Sameer Charles
24  * @author Fabrizio Giustina
25  * @version 2.0
26  */

27 public class Engine extends AbstractAdminModule {
28
29     /**
30      * Logger.
31      */

32     protected static Logger log = LoggerFactory.getLogger(Engine.class);
33
34     /**
35      * @see info.magnolia.module.admininterface.AbstractAdminModule#onInit()
36      */

37     public void onInit() {
38         // set local store to be accessed via admin interface classes or JSP
39
Store store = Store.getInstance();
40         store.setStore(this.getConfigNode());
41
42         // register the admin renderer kit
43
RenderKitFactory.registerRenderKit(RenderKitFactory.ADMIN_INTERFACE_RENDER_KIT, new AdminInterfaceRenderKit());
44     }
45
46     /**
47      * @see info.magnolia.module.admininterface.AbstractAdminModule#onRegister(int)
48      */

49     protected void onRegister(int registerState) throws RegisterException {
50         // everything done
51
}
52
53 }
Popular Tags