org.eclipse.actf.core
Class ActfCorePlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
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
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 |
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
ActfCorePlugin
public ActfCorePlugin()
- The constructor.
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()