|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cafesoft.core.service.StandardServiceFinder
public class StandardServiceFinder
StandardServiceFinder implements a ServiceFinder used by
ServiceClients to find Services. This implementation delegates
to a ServiceManager to lookup the desired Service.
| Constructor Summary | |
|---|---|
StandardServiceFinder(ServiceManager serviceManager)
Create a new StandardServiceFinder. |
|
| Method Summary | |
|---|---|
Service[] |
find(Class type)
Lookup Services by type. |
Service |
find(String id)
Lookup a Service by unique identifier. |
Service |
find(String id,
Class type)
Find a Service by unique identifier and type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandardServiceFinder(ServiceManager serviceManager)
serviceManager - the ServiceManager from which Services can
be found.| Method Detail |
|---|
public Service[] find(Class type)
throws ServiceException
find in interface ServiceFindertype - the Service Class.
ServiceException - if no service with the specified type is
registered.
public Service find(String id)
throws ServiceException
find in interface ServiceFinderid - the Service identifier.
ServiceException - if no service with the specified
identifier is registered.
public Service find(String id,
Class type)
throws ServiceException
find in interface ServiceFinderid - the Service identifier.type - the Service type.
ServiceException - if no service with the specified
identifier and type is registered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||