|
Bus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.topcased.externalbus.core.CorePlugin
public class CorePlugin
The main plugin class to be used in the desktop.
"org.topcased.externalbus.core" allows to access Topcased services from external server.
Define extension point ExternalServices and the interface IExternalService.
Field Summary |
---|
Fields inherited from class org.eclipse.core.runtime.Plugin |
---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
---|---|
CorePlugin()
The constructor. |
Method Summary | |
---|---|
static java.lang.Object |
createExtension(org.eclipse.core.runtime.IConfigurationElement element,
java.lang.String classAttribute)
Creates an extension. |
static CorePlugin |
getDefault()
|
static java.lang.String |
getId()
|
java.util.ResourceBundle |
getResourceBundle()
|
static java.lang.String |
getResourceString(java.lang.String key)
Returns the string from the plugin's resource bundle, or 'key' if not found. |
static void |
log(java.lang.Class<?> serviceClass,
java.lang.String message,
int level)
Logs a message with given level into the Eclipse log file and with given name class which call it |
static void |
log(java.lang.Class<?> serviceClass,
java.lang.String message,
int level,
java.lang.Exception e)
Logs a message with given level into the Eclipse log file and with given name class which call it |
static void |
log(org.eclipse.core.runtime.IStatus status)
Logs an IStatus |
static void |
log(java.lang.String message,
int level)
Logs a message with given level into the Eclipse log file |
static void |
log(java.lang.Throwable e)
Log an exception into the Eclipse log file |
void |
start(org.osgi.framework.BundleContext context)
This method is called upon plug-in activation |
void |
stop(org.osgi.framework.BundleContext context)
This method is called when the plug-in is stopped |
Methods inherited from class org.eclipse.core.runtime.Plugin |
---|
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CorePlugin()
Method Detail |
---|
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
start
in class org.eclipse.core.runtime.Plugin
context
-
java.lang.Exception
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class org.eclipse.core.runtime.Plugin
context
-
java.lang.Exception
public static CorePlugin getDefault()
public static java.lang.String getResourceString(java.lang.String key)
key
-
public java.util.ResourceBundle getResourceBundle()
public static java.lang.Object createExtension(org.eclipse.core.runtime.IConfigurationElement element, java.lang.String classAttribute) throws org.eclipse.core.runtime.CoreException
element
- the config element defining the extensionclassAttribute
- the name of the attribute carrying the class
org.eclipse.core.runtime.CoreException
public static java.lang.String getId()
public static void log(org.eclipse.core.runtime.IStatus status)
status
- public static void log(java.lang.String message, int level)
message
- : the message to loglevel
- : the message prioritypublic static void log(java.lang.Class<?> serviceClass, java.lang.String message, int level)
serviceClass
- calling => you must write : this.getClass()message
- : the message to loglevel
- : the message priority (IStatus.INFO or .ERROR or .WARNING ...)public static void log(java.lang.Class<?> serviceClass, java.lang.String message, int level, java.lang.Exception e)
serviceClass
- calling => you must write : this.getClass()message
- : the message to loglevel
- : the message priority (IStatus.INFO or IStatus.ERROR or IStatus.WARNING ...)e
- : exception stackpublic static void log(java.lang.Throwable e)
e
- : the exception to log
|
Bus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.