org.eclipse.actf.core
Class ActfCorePlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.actf.core.ActfCorePlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator
Direct Known Subclasses:
ModelPlugin

public class ActfCorePlugin
extends Plugin


Field Summary
static String ACTFCORE_PLUGIN_ID
           
protected  ClassLoaderCache clCache
           
protected  IConfiguration configuration
           
static String DEBUG_OPTION_ID
           
static String LOG_OPTION_ID
           
protected  IRuntimeContext runtimeContext
           
static String TRACE_OPTION_ID
           
protected  int traceLevel
           
static String TRACELEVEL_OPTION_ID
           
protected  String traceStream
           
static String TRACESTREAM_OPTION_ID
           
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
ActfCorePlugin()
          The constructor.
 
Method Summary
protected  String getDebugOptionId()
           
static ActfCorePlugin getDefault()
          Returns the shared instance.
protected  String getDefaultTraceFilename()
           
protected  String getLogOptionId()
           
protected  String getPluginId()
           
 IRuntimeContext getRuntimeContext()
           
protected  String getTraceOptionId()
           
protected  IReporter getTracer()
           
 boolean isDebugging(String option)
           
 void log(String option, int sev, int code, String message, Throwable t)
           
 void logException(String message, Throwable t)
           
 void logException(Throwable t)
           
protected  void prepareTraceFacility()
           
protected  String setupDefaultTraceStream()
           
 void start(org.osgi.framework.BundleContext context)
          This method is called upon plug-in activation
 void stop(org.osgi.framework.BundleContext context)
           
 
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
 

Field Detail

ACTFCORE_PLUGIN_ID

public static final String ACTFCORE_PLUGIN_ID
See Also:
Constant Field Values

DEBUG_OPTION_ID

public static final String DEBUG_OPTION_ID
See Also:
Constant Field Values

LOG_OPTION_ID

public static final String LOG_OPTION_ID
See Also:
Constant Field Values

TRACE_OPTION_ID

public static final String TRACE_OPTION_ID
See Also:
Constant Field Values

TRACESTREAM_OPTION_ID

public static final String TRACESTREAM_OPTION_ID
See Also:
Constant Field Values

TRACELEVEL_OPTION_ID

public static final String TRACELEVEL_OPTION_ID
See Also:
Constant Field Values

runtimeContext

protected IRuntimeContext runtimeContext

configuration

protected IConfiguration configuration

clCache

protected ClassLoaderCache clCache

traceStream

protected String traceStream

traceLevel

protected int traceLevel
Constructor Detail

ActfCorePlugin

public ActfCorePlugin()
The constructor.

Method Detail

getPluginId

protected String getPluginId()

getTraceOptionId

protected String getTraceOptionId()

getDebugOptionId

protected String getDebugOptionId()

getLogOptionId

protected String getLogOptionId()

getDefault

public static ActfCorePlugin getDefault()
Returns the shared instance.

Returns:
plugin

getDefaultTraceFilename

protected String getDefaultTraceFilename()

start

public void start(org.osgi.framework.BundleContext context)
           throws Exception
This method is called upon plug-in activation

Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class Plugin
Parameters:
context - bundle context
Throws:
Exception

getTracer

protected IReporter getTracer()

getRuntimeContext

public IRuntimeContext getRuntimeContext()

logException

public void logException(String message,
                         Throwable t)

logException

public void logException(Throwable t)

log

public void log(String option,
                int sev,
                int code,
                String message,
                Throwable t)

prepareTraceFacility

protected void prepareTraceFacility()

stop

public void stop(org.osgi.framework.BundleContext context)
          throws Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class Plugin
Throws:
Exception

isDebugging

public boolean isDebugging(String option)

setupDefaultTraceStream

protected String setupDefaultTraceStream()