|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.logicalcobwebs.proxool.configuration.AvalonConfigurator
public class AvalonConfigurator
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.
| 字段摘要 | |
|---|---|
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 |
| 字段详细信息 |
|---|
public static final String ROLE
public static final String CLOSE_ON_DISPOSE_ATTRIBUTE
| 构造方法详细信息 |
|---|
public AvalonConfigurator()
| 方法详细信息 |
|---|
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
XMLConfigurator.
org.apache.avalon.framework.configuration.Configurable 中的 configureconfiguration - the configuration handed over by the Avalon Framework.
org.apache.avalon.framework.configuration.ConfigurationException - if the configuration fails.public void dispose()
CLOSE_ON_DISPOSE_ATTRIBUTE is set: Close all connection pools that this configurator has configured.
org.apache.avalon.framework.activity.Disposable 中的 dispose
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||