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:
ILoggingService, ITracingService, org.osgi.framework.BundleActivator
Direct Known Subclasses:
ModelPlugin

public class ActfCorePlugin
extends Plugin
implements ITracingService, ILoggingService


Field Summary
static String ACTF_CORE_JAR
           
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 logError(String message)
           
 void logException(String message, Throwable t)
           
 void logException(Throwable t)
           
 void logInfo(String message)
           
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)
           
 void trace(int level, String msg)
           
 void trace(Object source, String message)
           
 void trace(String message)
           
 void trace(String option, String message)
           
 void trace(String message, Throwable t)
           
 void trace(Throwable t)
           
 
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

ACTF_CORE_JAR

public static final String ACTF_CORE_JAR
See Also:
Constant Field Values

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()

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

log

public void log(String option,
                int sev,
                int code,
                String message,
                Throwable t)
Specified by:
log in interface ILoggingService

logInfo

public void logInfo(String message)
Specified by:
logInfo in interface ILoggingService

logError

public void logError(String message)
Specified by:
logError in interface ILoggingService

logException

public void logException(String message,
                         Throwable t)
Specified by:
logException in interface ILoggingService

logException

public void logException(Throwable t)
Specified by:
logException in interface ILoggingService

isDebugging

public boolean isDebugging(String option)
Specified by:
isDebugging in interface ILoggingService

trace

public void trace(String option,
                  String message)
Specified by:
trace in interface ITracingService

trace

public void trace(String message)
Specified by:
trace in interface ITracingService

trace

public void trace(int level,
                  String msg)

trace

public void trace(Object source,
                  String message)
Specified by:
trace in interface ITracingService

trace

public void trace(String message,
                  Throwable t)
Specified by:
trace in interface ITracingService

trace

public void trace(Throwable t)
Specified by:
trace in interface ITracingService

setupDefaultTraceStream

protected String setupDefaultTraceStream()