|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.danube.connection.ConnectionWrapper
public abstract class ConnectionWrapper
Simple Connection wrapper class.
Field Summary | |
---|---|
protected Connection |
connection
Wrapped connection |
protected org.slf4j.Logger |
logger
Logger |
Constructor Summary | |
---|---|
ConnectionWrapper(Connection connection)
Constructor |
Method Summary | ||
---|---|---|
|
adapt(Class<T> cls)
Adopts this object using supplied adopter manager |
|
void |
close()
Closes the connection |
|
boolean |
isClosed()
Checks if underlaying connection closed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.slf4j.Logger logger
protected Connection connection
Constructor Detail |
---|
public ConnectionWrapper(Connection connection)
connection
- Method Detail |
---|
public void close()
close
in interface Connection
public boolean isClosed()
isClosed
in interface Connection
true
if underlaying connection closedpublic <T> T adapt(Class<T> cls)
adapt
in interface Adaptable
cls
- class to be adopted to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |