commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ringo.des...@mediagenix.com
Subject RE: [Latka] Developer's Guide / Coding Style
Date Fri, 22 Mar 2002 16:15:08 GMT

> Here's an example of what I'm talking about:
> 
> public class PooledConnection extends Connection {
>     public PooledConnection(Connection delegate) {
>         _delegate = delagate;
>     }
> 
>     public void someMethod() throws SQLException {
>         _delegate.someMethod();
>     }
> 
>     public void close() throws SQLException {
>        _sourcePool.returnObject(this);
>     }
> 
>     private void _close() throws SQLException {
>        _delegate.close();
>     }
> 
>     private Connection _delegate = null;
>     private Pool _sourcePool = null;
> }

Just a question: in this example, who invokes the private version of the
close (_close)?

Ringo

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message