| java.lang.Object org.cougaar.core.component.DelegatingServiceBroker
DelegatingServiceBroker | public class DelegatingServiceBroker implements ExtendedServiceBroker(Code) | | A Simple ServiceBroker which just delegates all
queries to another, useful for making restricted extentions.
Note that it does a little bit of magic to hide the identity of the
other ServiceBroker from clients.
|
Method Summary | |
public boolean | addService(Class serviceClass, ServiceProvider serviceProvider) | public boolean | addService(Class serviceClass, ServiceProvider serviceProvider, int providerId, ComponentDescription providerDesc) | public void | addServiceListener(ServiceListener sl) | public Iterator | getCurrentServiceClasses() gets the currently available services for this context. | protected ServiceBroker | getDelegate() | public T | getService(Object requestor, Class<T> serviceClass, ServiceRevokedListener srl) get an instance of the requested service from a service provider associated
with this context. | public ServiceResult | getService(int requestorId, ComponentDescription requestorDesc, Object requestor, Class serviceClass, ServiceRevokedListener srl, boolean recordInView) | public boolean | hasService(Class serviceClass) | public void | releaseService(Object requestor, Class serviceClass, Object service) | public void | releaseService(int requestorId, ComponentDescription requestorDesc, Object requestor, Class serviceClass, Object service, boolean recordInView) | public void | removeServiceListener(ServiceListener sl) | public void | revokeService(Class serviceClass, ServiceProvider serviceProvider) | public void | revokeService(Class serviceClass, ServiceProvider serviceProvider, int providerId, ComponentDescription providerDesc) |
addService | public boolean addService(Class serviceClass, ServiceProvider serviceProvider)(Code) | | add a Service to this ServiceBroker Context *
|
addServiceListener | public void addServiceListener(ServiceListener sl)(Code) | | add a ServiceListener to this ServiceBroker Context *
|
getCurrentServiceClasses | public Iterator getCurrentServiceClasses()(Code) | | gets the currently available services for this context.
This version copies the keyset to keep the iterator safe.
|
getService | public T getService(Object requestor, Class<T> serviceClass, ServiceRevokedListener srl)(Code) | | get an instance of the requested service from a service provider associated
with this context.
|
hasService | public boolean hasService(Class serviceClass)(Code) | | is the service currently available? *
|
removeServiceListener | public void removeServiceListener(ServiceListener sl)(Code) | | remove a services listener *
|
revokeService | public void revokeService(Class serviceClass, ServiceProvider serviceProvider)(Code) | | remoke or remove an existing service *
|
|
|