|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.common.services.ServiceNode
Manages the services a node (an ID) offers in the hierarchy.
This implementation can be used for any tagging interface of the services.
| Constructor Summary | |
ServiceNode(java.lang.Class taggingInterface)
Constructor. |
|
| Method Summary | |
java.lang.Object[] |
getAllServiceImplementations(java.lang.Class service)
Returns all registered serviceimplementations of this node for the service class given |
java.lang.Class[] |
getAllServices()
Returns all service key classes for this ServiceNode. |
java.lang.Object |
getService(java.lang.Class service,
boolean hierachyAccess)
Returns the implementation for the given service. |
boolean |
hasService(java.lang.Class service,
boolean hierachyAccess)
Tests whether a service exists |
void |
registerService(java.lang.Class service,
java.lang.Object implementation,
int serviceMode)
Registers a service in this node. |
void |
unregisterService(java.lang.Class service,
java.lang.Object implementation)
Unregisters a service in this node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ServiceNode(java.lang.Class taggingInterface)
taggingInterface - the required tagging interface class
or null if no tagging interface is required.| Method Detail |
public void registerService(java.lang.Class service,
java.lang.Object implementation,
int serviceMode)
service - the service interface classimplementation - the service implementationserviceMode - the service mode, this implementation should be installed for
(one of #FROM_PARENT, #DIRECT or #HIERARCHY).
public void unregisterService(java.lang.Class service,
java.lang.Object implementation)
service - the service interface classimplementation - the service implementation
public boolean hasService(java.lang.Class service,
boolean hierachyAccess)
service - the service interface classhierachyAccess - if true, the access to the service is done by looking
up the hierachy, if false it is an external access
public java.lang.Object getService(java.lang.Class service,
boolean hierachyAccess)
service - the service interface classhierachyAccess - if true, the access to the service is done by looking
up the hierachy, if false it is an external access
public java.lang.Class[] getAllServices()
ServiceNode.
public java.lang.Object[] getAllServiceImplementations(java.lang.Class service)
service - the service class
AbstractServiceManager.FROM_PARENT, AbstractServiceManager.DIRECT and
AbstractServiceManager.HIERARCHY
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||