org.norther.tammi.root.locale.util
Class DictionaryInitializer

java.lang.Object
  extended by org.norther.tammi.root.locale.util.DictionaryInitializer
All Implemented Interfaces:
Serializable, ConnectionInitializer

public class DictionaryInitializer
extends Object
implements ConnectionInitializer, Serializable

A connection initializer loading localized dictionary classes.

Version:
$Id: DictionaryInitializer.java,v 1.21 2009/09/28 15:08:36 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Constructor Summary
DictionaryInitializer()
          Constructs a new initializer.
 
Method Summary
protected  Class<?> getBaseClass()
          Gets the class to apply as the base class for localized resource bundles.
 void initialize(Persister persister)
          Initializes a database connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryInitializer

public DictionaryInitializer()
Constructs a new initializer.

Method Detail

initialize

public void initialize(Persister persister)
                throws Exception
Description copied from interface: ConnectionInitializer
Initializes a database connection.

Note that the initializer needs not to close the persister.

Specified by:
initialize in interface ConnectionInitializer
Parameters:
persister - the persister of the connection.
Throws:
Exception - on initialization errors.

getBaseClass

protected Class<?> getBaseClass()
Gets the class to apply as the base class for localized resource bundles.

Returns:
the base resource bundle class.


Copyright © 2004 The Norther Organization. All rights reserved.