commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Nermut" <jon.ner...@dytech.com.au>
Subject [pool] fields in GenericKeyedObjectPool should be protected
Date Thu, 13 Oct 2005 05:49:49 GMT
I was trying to change the behaviour of GenericKeyedObjectPool.evict()
so that it would always leave at least one instance in each of the
pools.
However because all the fields in the class are private, and the evict()
method accesses all these fields directly, it is impossible.
What is the point of providing these generic classes if they can't be
effectively overriden without totally reimplementing them?
IMHO all private fields and methods in GenericKeyedObjectPool  should be
protected.
 
Cheers,
 
Jon Nermut

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message