TPTP 4.2.0 Monitoring Tools Project
Public API Specification

org.eclipse.hyades.logging.adapter
Interface IContext

All Superinterfaces:
IComponent, java.lang.Runnable
All Known Implementing Classes:
Context

public interface IContext
extends IComponent, java.lang.Runnable

A specialized IComponent that manages a collection of IComponents as a context. Contexts exist as separate threads within the Adapter


Method Summary
 java.lang.String getCharset()
          Retrieve the name of the character set that this context is working with
 IContextListener getContextListener()
          Get the IContextListener that is invoked as the context manages its sub-components.
 java.util.Locale getLocale()
          Retrieve the locale that this context is operating within
 void setCharset(java.lang.String charset)
          Set the character set to be used by this context
 void setContextListener(IContextListener listener)
          Set the IContextListener that will be invoked as the context manages its sub-components.
 void setLocale(java.util.Locale locale)
          Set the locale to be used by this context
 
Methods inherited from interface org.eclipse.hyades.logging.adapter.IComponent
getComponents, getConfiguration, getContextConfiguration, getDescription, getExecutableClassName, getImplementationCreationDate, getImplementationVersion, getImplementationVersionDescription, getLogger, getLoggingLevel, getName, getParent, getRole, getRoleCreationDate, getRoleVersion, getRoleVersionDescription, getUniqueID, init, log, log, setComponents, setConfiguration, setContextConfiguration, setDescription, setExecutableClassName, setImplemenationCreationDate, setImplementationVersion, setImplementationVersionDescription, setLogger, setLoggingLevel, setName, setParent, setRole, setRoleCreationDate, setRoleVersion, setRoleVersionDescription, setUniqueID, start, stop, update, update
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

setContextListener

public void setContextListener(IContextListener listener)
Set the IContextListener that will be invoked as the context manages its sub-components.

Parameters:
listener -

getContextListener

public IContextListener getContextListener()
Get the IContextListener that is invoked as the context manages its sub-components.

Returns:
IContextListener - the context listener instance

getLocale

public java.util.Locale getLocale()
Retrieve the locale that this context is operating within

Returns:
Locale - locale of context

setLocale

public void setLocale(java.util.Locale locale)
Set the locale to be used by this context

Parameters:
locale - to be used by the context

getCharset

public java.lang.String getCharset()
Retrieve the name of the character set that this context is working with

Returns:
String - character set

setCharset

public void setCharset(java.lang.String charset)
Set the character set to be used by this context

Parameters:
charset - the name of the character set to use for this context

TPTP 4.2.0 Monitoring Tools Project
Public API Specification