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 ConnectionconnUnderlying connection.private static intHASH_CODE_SEEDhash 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 booleanequals(Object o)ConnectiongetConnection()Returns the connection that is being proxied.inthashCode()Objectinvoke(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
-
-