[Xforge-users] Keyed Object Pools
Brought to you by:
agaroffolo,
nemorino
From: Ulrich M. <ul...@de...> - 2003-03-05 12:57:14
|
Hello, I asked on the Avalon mailing list what to do if we want to pool objects with a certain key (like Transformers with the stylesheet URI as key). The answer was: "Wander over to commons and grab the commons-pool package. There is a KeyedObjectPool over there. Make the stylesheet the key and voila`!" I looked at it, they even have some docs :) Here is the link: http://jakarta.apache.org/commons/pool/api/index.html Seems like this could work for us, we'd have to throw out Excalibur Pool and replace it with this Pool. I have no idea whether that is possible easily or whether we have to change the component manager. Also we'd need to have some type of configuration in components.xml where we can specify whether we want a KeyedPool or not and what the key is. What do you think? cheers, Ulrich -- Ulrich Mayring DENIC eG, Systementwicklung |