org.xins.logdoc
Class AbstractLog.LogController

java.lang.Object
  extended byorg.xins.logdoc.AbstractLog.LogController
Enclosing class:
AbstractLog

protected abstract static class AbstractLog.LogController
extends Object

Log controller. Can be used by the LogCentral class to set the locale on a specific Log class. Each Log class should create exactly one LogController object, in a class initializer.

Since:
XINS 1.0.0
Version:
$Revision: 1.22 $ $Date: 2006/08/28 09:12:30 $
Author:
Ernst de Haan

Constructor Summary
protected AbstractLog.LogController()
          Constructs a new LogController object.
 
Method Summary
protected abstract  boolean isLocaleSupported(String locale)
          Checks if the specified locale is supported.
protected abstract  void setLocale(String newLocale)
          Activates the specified locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLog.LogController

protected AbstractLog.LogController()
                             throws UnsupportedLocaleException
Constructs a new LogController object.

Throws:
UnsupportedLocaleException - if this LogController does not support the current Locale.
Method Detail

isLocaleSupported

protected abstract boolean isLocaleSupported(String locale)
Checks if the specified locale is supported.

Parameters:
locale - the locale, not null.
Returns:
true if the locale is supported, false if it is not.

setLocale

protected abstract void setLocale(String newLocale)
Activates the specified locale.

This method should only be called with locales that are supported, according to isLocaleSupported(String). Otherwise the behaviour of this method is unspecified.

Parameters:
newLocale - the new locale, not null.


See http://www.xins.org/.