|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Provides Service implementations by accessing them via their
Service interface.
This service provider does not support a hierarchy.
Services provide a flexible and extensible mechanism for communication between e.g. dialogs or components (seeService).
A service is identified by a class object: the interface that defines
the service. That interface must extend Service.
The implementation must be an object that implements that concrete
interface.
Note: A service interface that extends another service interface will be considered as a different service.
Note: Implementations of this interface must be threadsafe and be aware that while executing one method the same or any other method may be called again by the same or another thread. Avoid implementations that might deadlock.
| Method Summary | |
Service |
getService(java.lang.Class service)
Returns the service implementation registered with the service manager. |
boolean |
hasService(java.lang.Class service)
Tests, whether a service is registered with the service manager. |
| Method Detail |
public boolean hasService(java.lang.Class service)
service - the interface that defines the service
public Service getService(java.lang.Class service)
service - the interface that defines the service
java.lang.IllegalArgumentException - if the service is unknown
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||