This content has been marked as final. Show 3 replies
> I need to extend org.apache.commons.pool.BasePoolableObjectFactory
Do you really need to use inheritance or would composition be sufficient?
Meaning, have you thought about creating a CFC where the implementation
of the CFC's methods would just be calls to the corresponding methods of the
However, if later you determine that callers of the CFC would need a reference
to the CFC's instance of BasePoolableObjectFactory, then you may want to
consider a different startegy.
Would creating a CFC facade for the java object and then extending that
CFC with another CFC work?
Unfortunately, in order to create a GenericObjectPool I have to hand off an object of type PoolableObjectFactory. Implementing all the methods wouldn't do it because the class still wouldn't be of the proper type.
It looks like the only option is to create the factory class in Java .