01: // The contents of this file are subject to the Mozilla Public License Version
02: // 1.1
03: //(the "License"); you may not use this file except in compliance with the
04: //License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
05: //
06: //Software distributed under the License is distributed on an "AS IS" basis,
07: //WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
08: //for the specific language governing rights and
09: //limitations under the License.
10: //
11: //The Original Code is "The Columba Project"
12: //
13: //The Initial Developers of the Original Code are Frederik Dietz and Timo
14: // Stich.
15: //Portions created by Frederik Dietz and Timo Stich are Copyright (C) 2003.
16: //
17: //All Rights Reserved.
18: package org.columba.chat;
19:
20: import java.io.InputStream;
21:
22: import org.apache.commons.cli.CommandLine;
23: import org.columba.api.plugin.IExtensionHandlerKeys;
24: import org.columba.api.plugin.PluginHandlerNotFoundException;
25: import org.columba.api.plugin.PluginMetadata;
26: import org.columba.core.component.api.IComponentPlugin;
27: import org.columba.core.plugin.PluginManager;
28:
29: /**
30: * @author fdietz
31: *
32: */
33: public class AlturaComponent implements IComponentPlugin {
34:
35: public final static String PLUGIN_ID = "org.columba.chat.altura";
36:
37: /**
38: *
39: */
40: public AlturaComponent() {
41: super ();
42:
43: }
44:
45: /**
46: * @see org.columba.core.component.api.IComponentPlugin#init()
47: */
48: public void init() {
49: try {
50: PluginMetadata metadata = PluginManager.getInstance()
51: .getPluginMetadata(PLUGIN_ID);
52:
53: InputStream is = this .getClass().getResourceAsStream(
54: "/org/columba/chat/action/action.xml");
55:
56: PluginManager.getInstance().getExtensionHandler(
57: IExtensionHandlerKeys.ORG_COLUMBA_CORE_ACTION)
58: .loadExternalExtensionsFromStream(metadata, is);
59:
60: } catch (PluginHandlerNotFoundException ex) {
61: }
62:
63: }
64:
65: /**
66: * @see org.columba.core.component.api.IComponentPlugin#postStartup()
67: */
68: public void postStartup() {
69:
70: }
71:
72: /**
73: * @see org.columba.core.component.api.IComponentPlugin#registerCommandLineArguments()
74: */
75: public void registerCommandLineArguments() {
76:
77: }
78:
79: /**
80: * @see org.columba.core.component.api.IComponentPlugin#handleCommandLineParameters(org.apache.commons.cli.CommandLine)
81: */
82: public void handleCommandLineParameters(CommandLine commandLine) {
83:
84: }
85:
86: }
|