| java.lang.Object org.cougaar.core.component.AddonServiceBroker
AddonServiceBroker | public class AddonServiceBroker implements ExtendedServiceBroker(Code) | | A Simple ServiceBroker which does a simple delegation
of service requests for most purposes, except that it has
an escape hatch where extending classes may, in effect, themselves
offer services directly to the requestors.
|
Method Summary | |
final public boolean | addService(Class serviceClass, ServiceProvider serviceProvider) | final public boolean | addService(Class serviceClass, ServiceProvider serviceProvider, int providerId, ComponentDescription providerDesc) | final public void | addServiceListener(ServiceListener sl) | protected Iterator | getCurrentLocalServiceClasses() Defined by extending classes to advertise a service to the
clients. | final public Iterator | getCurrentServiceClasses() | final protected ServiceBroker | getDelegate() | protected Object | getLocalService(Object requestor, Class serviceClass, ServiceRevokedListener srl) Defined by extending classes to provide services to
clients. | final public T | getService(Object requestor, Class<T> serviceClass, ServiceRevokedListener srl) | final public ServiceResult | getService(int requestorId, ComponentDescription requestorDesc, Object requestor, Class serviceClass, ServiceRevokedListener srl, boolean recordInView) | protected boolean | hasLocalService(Class serviceClass) Defined by extending classes to respond to hasService calls from
clients. | final public boolean | hasService(Class serviceClass) | protected boolean | releaseLocalService(Object requestor, Class serviceClass, Object service) Defined by extending classes to release previously granted
services. | final public void | releaseService(Object requestor, Class serviceClass, Object service) | final public void | releaseService(int requestorId, ComponentDescription requestorDesc, Object requestor, Class serviceClass, Object service, boolean recordInView) | final public void | removeServiceListener(ServiceListener sl) | final public void | revokeService(Class serviceClass, ServiceProvider serviceProvider) | final public void | revokeService(Class serviceClass, ServiceProvider serviceProvider, int providerId, ComponentDescription providerDesc) |
getCurrentLocalServiceClasses | protected Iterator getCurrentLocalServiceClasses()(Code) | | Defined by extending classes to advertise a service to the
clients. A service need not be advertised here for getLocalService
to work. The default implementation returns null.
|
getCurrentServiceClasses | final public Iterator getCurrentServiceClasses()(Code) | | |
hasLocalService | protected boolean hasLocalService(Class serviceClass)(Code) | | Defined by extending classes to respond to hasService calls from
clients. A service need not be advertised here for getLocalService
to work. The default implementation just returns false.
|
hasService | final public boolean hasService(Class serviceClass)(Code) | | |
releaseLocalService | protected boolean releaseLocalService(Object requestor, Class serviceClass, Object service)(Code) | | Defined by extending classes to release previously granted
services. Should return true IFF the service was released.
The default implementation returns false.
|
|
|