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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]