Is there an existing mechanism that allows a pool of arbitrary objects
to be created and utilized in a standard manner. The class to be pooled
would implement the Poolable interface.

Example:

public ClassA implements Configurable, Poolable, Recyclable,
SingleThreaded {
        public void configure (Configuration conf) throws
ConfigurationException {
                // Time consuming configuration.
        }

        public Object myMethod () {
                // do something.
        }
}

In my configuration.xconf:

<arbitrary-classA-pool min="5" max="25" useHardLimiting="true">
        <config>
                <delta>5</delta>
        </config>
</arbitrary-classA-pool>

Is there an existing way to do this? If not are there limitations (in
Avalon or otherwise) that have prevented this from being done?

Thanks,
Corey


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to