public interface DataSourceFactoryAction
DataSourceFactory.class
.
A DataSourceFactoryAction
implementation is not intended to be used
directly by applications. A DataSourceFactory may choose
to create its DataSourceFactoryAction
implementation in a private class
to avoid it being called directly.
A DataSourceFactory static initialization block must call
DataSourceFactory.registerDataSourceFactory(java.sql2.DataSourceFactory, java.sql2.DataSourceFactoryAction) in order
to inform DataSourceFactory
which DataSourceFactoryAction
implementation to
call when the DataSourceFactory is de-registered.
Modifier and Type | Method | Description |
---|---|---|
void |
deregister() |
Method called by
DataSourceFactory.deregisterDataSourceFactory(DataSourceFactory)
to notify the DataSourceFactory that it was de-registered.
|
void deregister()
The deregister
method is intended only to be used by DataSourceFactories
and not by applications. Implementations are recommended to not implement
DataSourceFactoryAction
in a public class. If there are active
connections to the database at the time that the deregister
method is called, it is implementation specific as to whether the
connections are closed or allowed to continue. Once this method is
called, it is implementation specific as to whether the implementation may
limit the ability to create new connections to the database, invoke
other DataSourceFactory
methods or throw a Exception
s.
Consult your implementation vendor's documentation for additional information
on its behavior.
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.
DRAFT JDBC 4.4 EA