fr.gouv.culture.sdx.utils
Class SdxObjectImpl

java.lang.Object
  extended byfr.gouv.culture.sdx.utils.SdxObjectImpl
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled, SdxObject
Direct Known Subclasses:
AbstractDatabase, AbstractDocument, AbstractIDGenerator, AbstractQuery, DatabaseBacked, HSQLDB, JDBC, LuceneData, LuceneDataStore, Property, Results, SimpleTimeScheduler, SQLDatabaseConnection, Terms

public abstract class SdxObjectImpl
extends java.lang.Object
implements SdxObject

Created by IntelliJ IDEA. User: rpandey Date: Dec 10, 2002 Time: 2:00:08 PM To change this template use Options | File Templates.


Field Summary
protected  java.lang.String encoding
          The default encoding to be used when working with strings
protected  org.apache.avalon.framework.logger.Logger logger
          Avalon logger to write information.
 
Constructor Summary
SdxObjectImpl()
           
 
Method Summary
 void enableLogging(org.apache.avalon.framework.logger.Logger logger)
          Sets the logger for this object.
protected  void getChildLogger(java.lang.String id)
           
 void setEncoding(java.lang.String enc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.apache.avalon.framework.logger.Logger logger
Avalon logger to write information.


encoding

protected java.lang.String encoding
The default encoding to be used when working with strings

Constructor Detail

SdxObjectImpl

public SdxObjectImpl()
Method Detail

enableLogging

public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
Sets the logger for this object.

Setting the logger ensures proper logging of potential errors. If not set, this class won't be able to log any information. But it will still work.

Specified by:
enableLogging in interface org.apache.avalon.framework.logger.LogEnabled

getChildLogger

protected void getChildLogger(java.lang.String id)

setEncoding

public void setEncoding(java.lang.String enc)
Specified by:
setEncoding in interface SdxObject


Copyright © 2000-2004 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.