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

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

public class DictionaryInitializer
extends Object
implements Initializer

A connection initializer loading localized dictionary classes.

Author:
Ilkka Priha

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, VariableRegistry registry, LoaderMBean loader, String alias)
          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,
                       VariableRegistry registry,
                       LoaderMBean loader,
                       String alias)
                throws Exception
Description copied from interface: Initializer
Initializes a database connection.

Note that the initializer needs not to close the persister.

Specified by:
initialize in interface Initializer
Parameters:
persister - the persister of the connection.
registry - the variable registry.
loader - the MBean loader.
alias - the connection alias.
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.