org.logicalcobwebs.proxool.configuration
类 AvalonConfigurator

java.lang.Object
  继承者 org.logicalcobwebs.proxool.configuration.AvalonConfigurator
所有已实现的接口:
org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.thread.ThreadSafe

public class AvalonConfigurator
extends Object
implements org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.thread.ThreadSafe, org.apache.avalon.framework.activity.Disposable

Configurator for the Avalon Framework. The configuration can contain any number of <proxool> elements. The <proxool> elements are delegated to XMLConfigurator, and have exactly the same format as is documented in that class.

This is a "faceless" Avalon component. This means that it does not present an operational interface, it simply configures Proxool when Avalon calls its configure method. You need to lookup this component in your bootstrap code to make this happen.

The configuration takes one attribute: close-on-dispose
You can use this to let this configurator know wether or not to close the pools it has created when it is disposed.
Legal values are true or false. Default: true.

版本:
$Revision: 1.14 $, $Date: 2006/01/18 14:39:58 $
作者:
billhorsman, $Author: billhorsman $ (current maintainer)

字段摘要
static String CLOSE_ON_DISPOSE_ATTRIBUTE
          Constant for the boolean "close-on-dispose" attribute that signifies wether or not this configurator shall close the pools it has created when it is disposed.
static String ROLE
          Avalon ROLE id for this component.
 
构造方法摘要
AvalonConfigurator()
           
 
方法摘要
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
          Check that all top level elements are named proxool and hand them to XMLConfigurator.
 void dispose()
          If CLOSE_ON_DISPOSE_ATTRIBUTE is set: Close all connection pools that this configurator has configured.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

ROLE

public static final String ROLE
Avalon ROLE id for this component.


CLOSE_ON_DISPOSE_ATTRIBUTE

public static final String CLOSE_ON_DISPOSE_ATTRIBUTE
Constant for the boolean "close-on-dispose" attribute that signifies wether or not this configurator shall close the pools it has created when it is disposed. Legal values are "true" or "false". Default: true.

另请参见:
常量字段值
构造方法详细信息

AvalonConfigurator

public AvalonConfigurator()
方法详细信息

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Check that all top level elements are named proxool and hand them to XMLConfigurator.

指定者:
接口 org.apache.avalon.framework.configuration.Configurable 中的 configure
参数:
configuration - the configuration handed over by the Avalon Framework.
抛出:
org.apache.avalon.framework.configuration.ConfigurationException - if the configuration fails.

dispose

public void dispose()
If CLOSE_ON_DISPOSE_ATTRIBUTE is set: Close all connection pools that this configurator has configured.
...else: do nothing.

指定者:
接口 org.apache.avalon.framework.activity.Disposable 中的 dispose


Copyright © 2014. All rights reserved.