Package org.ldaptive
Class SingleConnectionFactory.ConnectionProxy
- java.lang.Object
-
- org.ldaptive.SingleConnectionFactory.ConnectionProxy
-
- All Implemented Interfaces:
InvocationHandler
- Enclosing class:
- SingleConnectionFactory
protected static class SingleConnectionFactory.ConnectionProxy extends Object implements InvocationHandler
Contains the connection used by this factory.
-
-
Field Summary
Fields Modifier and Type Field Description private Connection
conn
Underlying connection.private static int
HASH_CODE_SEED
hash code seed.
-
Constructor Summary
Constructors Constructor Description ConnectionProxy(Connection c)
Creates a new connection proxy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Connection
getConnection()
Returns the connection that is being proxied.int
hashCode()
Object
invoke(Object proxy, Method method, Object[] args)
-
-
-
Field Detail
-
HASH_CODE_SEED
private static final int HASH_CODE_SEED
hash code seed.- See Also:
- Constant Field Values
-
conn
private final Connection conn
Underlying connection.
-
-
Constructor Detail
-
ConnectionProxy
public ConnectionProxy(Connection c)
Creates a new connection proxy.- Parameters:
c
- connection to proxy
-
-
Method Detail
-
getConnection
public Connection getConnection()
Returns the connection that is being proxied.- Returns:
- underlying connection
-
-