KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > pentaho > core > system > GlobalObjectInitializer


1 /*
2  * Copyright 2006 Pentaho Corporation. All rights reserved.
3  * This software was developed by Pentaho Corporation and is provided under the terms
4  * of the Mozilla Public License, Version 1.1, or any later version. You may not use
5  * this file except in compliance with the license. If you need a copy of the license,
6  * please go to http://www.mozilla.org/MPL/MPL-1.1.txt. The Original Code is the Pentaho
7  * BI Platform. The Initial Developer is Pentaho Corporation.
8  *
9  * Software distributed under the Mozilla Public License is distributed on an "AS IS"
10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
11  * the license for the specific language governing your rights and limitations.
12  *
13  * Created Oct 6, 2005
14  * @author mbatchel
15  */

16 package org.pentaho.core.system;
17
18 import org.pentaho.core.session.IPentahoSession;
19
20 public class GlobalObjectInitializer implements IPentahoSystemListener {
21
22     public boolean startup(IPentahoSession session) {
23         //
24
// This is not ideal at all. Should have loop here to loop through the
25
// objects
26
// listed in the pentaho.xml. Need to fix this at some point, but right
27
// now, the
28
// PentahoSystem object instances this class, calls this method which
29
// simply calls
30
// back into PentahoSystem to do the work. I don't like it.
31
//
32
// MB
33
return PentahoSystem.initGlobalObjects(session);
34     }
35
36     public void shutdown() {
37
38     }
39
40 }
41
Popular Tags