1 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 33 public class AlturaComponent implements IComponentPlugin { 34 35 public final static String PLUGIN_ID = "org.columba.chat.altura"; 36 37 40 public AlturaComponent() { 41 super(); 42 43 } 44 45 48 public void init() { 49 try { 50 PluginMetadata metadata = PluginManager.getInstance().getPluginMetadata(PLUGIN_ID); 51 52 InputStream is = this.getClass().getResourceAsStream( 53 "/org/columba/chat/action/action.xml"); 54 55 PluginManager.getInstance().getExtensionHandler( 56 IExtensionHandlerKeys.ORG_COLUMBA_CORE_ACTION).loadExternalExtensionsFromStream(metadata, is); 57 58 } catch (PluginHandlerNotFoundException ex) { 59 } 60 61 } 62 63 66 public void postStartup() { 67 68 } 69 70 73 public void registerCommandLineArguments() { 74 75 } 76 77 80 public void handleCommandLineParameters(CommandLine commandLine) { 81 82 } 83 84 } | Popular Tags |