public class DefaultConnectionFinder extends Object implements ConnectionFinder
ConnectionFinder
implementation.
This implementation attempts to retrieve the OracleConnection
by recursive reflection: it searches for methods that return
Connection
objects, executes these methods and checks the
result. If the result is of type OracleConnection
the object
is returned, otherwise it recurses on it.
Constructor and Description |
---|
DefaultConnectionFinder() |
Modifier and Type | Method and Description |
---|---|
Connection |
find(Connection con)
Find an instance of Connection that can be cast to an
OracleConnection instance. |
public Connection find(Connection con)
ConnectionFinder
OracleConnection
instance.find
in interface ConnectionFinder
con
- the object that is being searched for an OracleConnectionCopyright © 2015 geolatte.org. All rights reserved.