org.jadetower.dao
Class DaoContainer

java.lang.Object
  extended byorg.jadetower.dao.DaoContainer

public class DaoContainer
extends java.lang.Object

a simple DAO Container.


Constructor Summary
DaoContainer(java.lang.String[] configUrls, java.util.Map context, org.apache.commons.logging.Log log)
          creates a basic DaoContainer
 
Method Summary
protected  Resolver createResolver(org.apache.avalon.framework.configuration.Configuration config)
           
 DaoManager getManager()
          get the default DaoManager
 DaoManager getManager(java.lang.String context)
          get a specific named DaoManager
protected  void initialize()
           
protected  void initLogger(org.apache.commons.logging.Log log)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DaoContainer

public DaoContainer(java.lang.String[] configUrls,
                    java.util.Map context,
                    org.apache.commons.logging.Log log)
             throws java.lang.Exception
creates a basic DaoContainer

Parameters:
configUrls - a array of configuration file URLs (will merge files)
context - a default root context [can be null]
Throws:
java.lang.Exception
Method Detail

getManager

public DaoManager getManager()
                      throws java.lang.Exception
get the default DaoManager

Returns:
the default DAO Manager
Throws:
java.lang.Exception

getManager

public DaoManager getManager(java.lang.String context)
                      throws java.lang.Exception
get a specific named DaoManager

Parameters:
context - the DaoManager ID or context name
Returns:
the named DaoManager
Throws:
java.lang.Exception

initialize

protected void initialize()

createResolver

protected Resolver createResolver(org.apache.avalon.framework.configuration.Configuration config)

initLogger

protected void initLogger(org.apache.commons.logging.Log log)


Copyright © 2003-2004 JadeTower. All Rights Reserved.