|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
* A component with which one or more services are registered. The services can * be retrieved from this locator using some key -- typically the class * representing the interface the service must implement. For example: *
* ** IHandlerService service = (IHandlerService) workbenchWindow * .getService(IHandlerService.class); ** *
* This interface is not to be implemented or extended by clients. *
* * @since 3.2
Method Summary | |
---|---|
Object |
getService(Class api)
Retrieves the service corresponding to the given API |
boolean |
hasService(Class api)
Whether this service exists within the scope of this service locator |
Method Detail |
public Object getService(Class api)
null
.
* @return The service, or null
if no such service could be
* found.
public boolean hasService(Class api)
null
.
* @return true
iff the service locator can find a service
* for the given API; false
otherwise.
|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.