Hi,

On Thu, 20 Feb 2003 04:04, [EMAIL PROTECTED] wrote:
> I was looking at the
> org.apache.avalon.cornerstone.blocks.datasources.DefaultDataSourceSelector
> class in order to get inspiration to do a ServiceSelector that must
> instanciate the components it will give based on configuration.

I would highly recomend that you don't use *Selectors. They were an ugly hack 
put into place ages ago that I think most people now regret. Hopefully post 
Fortress release we can start the process of deprecating them.

I would instead recomend you create a custom work interface to manage your 
components directly with a non-generic optimized interface. Most of these 
Manager components still follow the same pattern but are specific to the 
resource they manage. ie

interface FooManager
{
  Foo aquireFoo( int param1, String param2 );
  void releaseFoo( Foo foo );
}

-- 
Cheers,

Peter Donald
*----------------------------------------------------*
|  "Luck is the residue of design" -- Branch Rickey  |
*----------------------------------------------------*



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

Reply via email to