avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hawkes" <jhaw...@adsnm.com>
Subject Re: AMMENDMENT: [proposal] Avalon Container Framework
Date Thu, 20 Nov 2003 16:47:09 GMT
On second thought, the Disposable interface is no longer necessary since a
ServiceContainer is now marked as a service itself.  The container could be
shutdown by invoking ContainerUtils.dispose(container).


> Please remove the ServiceContainer.getServices() convenience method.  It
> assumes too much.
>
> public interface ServiceContainer
> extends ServiceManager, Disposable {
>
>     String ROLE = ServiceContainer.class.getName();
>
>     Set getServiceRoles();
>
>     ServiceConstructor getConstructor(String role);
>
>     void registerService(ServiceConstructor sc)
>       throws ServiceRegistrationException;
>
>     void unregisterService(String role);
>
>     /* BEGIN from ServiceManager **
>     boolean hasService(String role);
>
>     Object lookup(String role)
>       throws ServiceException;
>
>     void release(Object service);
>     ** END from ServiceManager */
>
>     // Uncertain about this method...
>     // The List can be modifiable/unmodifiable
>     List getChildContainers();
>
>     void verify()
>       throws ServiceResolutionException;
>
>     // from Disposable
>     void dispose();
> }
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
> For additional commands, e-mail: dev-help@avalon.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Mime
View raw message