Class DefaultConnectionFinder
- java.lang.Object
-
- org.geolatte.geom.codec.db.oracle.DefaultConnectionFinder
-
- All Implemented Interfaces:
Serializable,ConnectionFinder
public class DefaultConnectionFinder extends Object implements ConnectionFinder
DefaultConnectionFinderimplementation.This implementation attempts to retrieve the
OracleConnectionby recursive reflection: it searches for methods that returnConnectionobjects, executes these methods and checks the result. If the result is of typeOracleConnectionthe object is returned, otherwise it recurses on it.- Author:
- Karel Maesen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultConnectionFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connectionfind(Connection con)Find an instance of Connection that can be cast to anOracleConnectioninstance.
-
-
-
Method Detail
-
find
public Connection find(Connection con)
Description copied from interface:ConnectionFinderFind an instance of Connection that can be cast to anOracleConnectioninstance.- Specified by:
findin interfaceConnectionFinder- Parameters:
con- the object that is being searched for an OracleConnection- Returns:
- the object sought
-
-