KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > planetamessenger > mos > engine > JKernelManager


1 /*
2     =========================================================================
3     Package engine - Implements the engine package.
4
5     This module is developed and maintained by PlanetaMessenger.org.
6     Specs, New and updated versions can be found in
7     http://www.planetamessenger.org
8     If you want contact the Team please send a email to Project Manager
9     Leidson Campos Alves Ferreira at leidson@planetamessenger.org
10
11     Copyright (C) since 2001 by PlanetaMessenger.org
12
13     This program is free software; you can redistribute it and/or modify
14     it under the terms of the GNU General Public License as published by
15     the Free Software Foundation; either version 2 of the License, or
16     (at your option) any later version.
17
18     This program is distributed in the hope that it will be useful,
19     but WITHOUT ANY WARRANTY; without even the implied warranty of
20     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21     GNU General Public License for more details.
22
23     You should have received a copy of the GNU General Public License
24     along with this program; if not, write to the Free Software
25     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26
27     =========================================================================
28 */

29 /**
30  *
31  * $Id: JKernelManager.java,v 1.6 2007/01/28 17:39:20 popolony2k Exp $
32  * $Author: popolony2k $
33  * $Name: $
34  * $Revision: 1.6 $
35  * $State: Exp $
36  *
37  */

38
39 package org.planetamessenger.mos.engine;
40
41 import org.planetamessenger.plugin.*;
42
43
44 public class JKernelManager implements JKernelAPIListener {
45
46   /**
47    * Constructor. Create and initialize all class data.
48    */

49   public JKernelManager() {
50     
51   }
52   
53   /**
54    * Implements the getContactListManager method.
55    * Just return the contactlist implementation to plugin.
56    */

57   public JContactListListener getContactListManager() {
58     
59     return JSharedObjects.getContactListManager();
60   }
61   
62   /**
63    * Implements the getUserInterfaceManager() method to control
64    * user interface operations of PM.
65    */

66   public JUserInterfaceListener getUserInterfaceManager() {
67     
68     return JSharedObjects.getUserInterfaceManager();
69   }
70   
71   /**
72    * Implements the getPreferencesManager() method to control
73    * preferences operation of PM.
74    */

75   public JPreferencesListener getPreferencesManager() {
76     
77     return JSharedObjects.getPluginPreferencesManager();
78   }
79
80   /**
81    * Implements the getPlugins Path to interface
82    * JKernelAPI.
83    * Returns the plugins path.
84    */

85   public String JavaDoc getPluginsPath() {
86     
87     return JSharedObjects.getConfiguration().getPluginsPath();
88   }
89
90   /**
91    * Implements the getDependencies Path to interface
92    * JKernelAPI.
93    * Returns the dependencies path.
94    */

95   public String JavaDoc getDependeciesPath() {
96    
97     return JSharedObjects.getConfiguration().getDepLibPath();
98   }
99 }
100 // JKernelManager class
101
Popular Tags