|
SummaryA client prepares a ServiceTemplate , which is a list of class objects and a list of entries. For each service locator that is found, the client can query the ServiceRegistrar object by preparing a ServiceTemplate object and calling the ServiceRegistrar object's lookup() method to see if the locator has a service matching the template. If the match is successful, an object is returned that can be cast into the class required. Service methods can then be invoked on this object. |