This method of the IServiceObjectProvider Interface requests a service from an object. The object that provides the service can be the current object or a different object.
To determine whether the object supports the requested service, a typical implementation would check to see if any of the following items are true:
If the object does not support the requested service, it delegates the method call to an upper level object (such as a containing frame). Finally, if no object in the chain supports the requested service, a ServiceNotFoundException is thrown.
public Object queryService(Object id) throws ServiceNotFoundException;
Returns the service object, if it is available.
id | The identifier of the requested service. |
ServiceNotFoundException if no object supports the requested service.