| java.lang.Object org.cougaar.core.component.ServiceBrokerSupport
All known Subclasses: org.cougaar.core.component.PropagatingServiceBroker,
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) | protected void | applyListener(ServiceListener sl, ServiceEvent se) | protected void | applyListeners(ServiceEvent se) | public Iterator | getCurrentServiceClasses() gets the currently available services for this context. | 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) | protected ServiceResult | getServiceAllowNull(int requestorId, ComponentDescription requestorDesc, Object requestor, Class serviceClass, ServiceRevokedListener srl, boolean recordInView) get the service and allow a NullService result, which the
usual "getService(..)" replaces with null. | 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) |
servicesLock | final protected Object servicesLock(Code) | | Lock for services. Protected so that extending classes can
synchronize over multiple calls.
|
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 *
|
applyListeners | protected void applyListeners(ServiceEvent se)(Code) | | Apply each listener appropriately to the event *
|
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.
|
getServiceAllowNull | protected ServiceResult getServiceAllowNull(int requestorId, ComponentDescription requestorDesc, Object requestor, Class serviceClass, ServiceRevokedListener srl, boolean recordInView)(Code) | | get the service and allow a NullService result, which the
usual "getService(..)" replaces with null.
|
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 *
|
|
|