org.outerj.xreporter.connectionprovider.nonpooling
Class NonPoolingConnectionProviderManager
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.outerj.xreporter.connectionprovider.AbstractConnectionProviderManager
org.outerj.xreporter.connectionprovider.nonpooling.NonPoolingConnectionProviderManager
- All Implemented Interfaces:
- org.apache.avalon.framework.configuration.Configurable, ConnectionProviderManager, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.thread.ThreadSafe
- public class NonPoolingConnectionProviderManager
- extends AbstractConnectionProviderManager
ConnectionProviderManager implementation that returns NonPoolingConnectionProvider
s.
Method Summary |
ConnectionProvider |
createProvider(java.util.Properties properties)
The properties should contain the properties used to create the connection. |
void |
generateStatus(org.xml.sax.ContentHandler contentHandler)
The NonPoolingConnectionProviderManager does not keep references to the ConnectionProviders
it creates (since it does not need them), and hence is not able to generate anything usefull. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONNECTION_PROVIDERS_EL
protected static final java.lang.String CONNECTION_PROVIDERS_EL
- See Also:
- Constant Field Values
NonPoolingConnectionProviderManager
public NonPoolingConnectionProviderManager()
createProvider
public ConnectionProvider createProvider(java.util.Properties properties)
- Description copied from interface:
ConnectionProviderManager
- The properties should contain the properties used to create the connection.
It should at least contain "url", and usually also "user" and "password".
This method will always return new instances, even if you call it twice with the
same properties. It is the responsiblity of the caller to keep a reference to
the created ConnectionProvider. Depending on the implementation, ConnectionProviderManager
itself could also keep references to the ConnectionProviders for maintenance purposes.
- See Also:
ConnectionProviderManager.generateStatus(org.xml.sax.ContentHandler)
generateStatus
public void generateStatus(org.xml.sax.ContentHandler contentHandler)
throws org.xml.sax.SAXException
- The NonPoolingConnectionProviderManager does not keep references to the ConnectionProviders
it creates (since it does not need them), and hence is not able to generate anything usefull.
This will return an XML document with just the document element "connection-providers".
- Throws:
org.xml.sax.SAXException
- See Also:
ConnectionProviderManager.generateStatus(org.xml.sax.ContentHandler)