OK, I missed that thread. This approach looks fine to me.
(: Anrie ;)
Berin Loritsch wrote:
> For the time being, I think we settled on the direct approach:
>
> interface ServiceManager
> {
> /**
> * Return component for the specified role. If there are more than
> * one components for the role, return the default.
> */
> Object lookup(String role);
>
> /**
> * Return component for the specified role. If there are more than
> * one components for the role, use the supplied parameters to
> determine
> * which one. If the parameters do not help, return the default.
> */
> Object lookup(String role, Parameters params);
>
> /**
> * Returns true if the ServiceManager has at least one instance of a
> * role.
> */
> boolean hasComponent( String role );
>
> /**
> * Release a sepecific component.
> */
> void release(Object component);
> }
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>