|
SunSPOT API V5.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.spot.service.ServiceRegistry
public class ServiceRegistry
Global service registry for all SPOT-related services.
Method Summary | |
---|---|
void |
add(IService serviceInstance)
Add a new service to the registery. |
static ServiceRegistry |
getInstance()
Get the globally unique service registry instance. |
IService |
lookup(Class serviceInterface)
Lookup a matching service. |
IService |
lookup(Class serviceInterface,
String name)
Lookup a matching service with a specified service name. |
IService[] |
lookupAll(Class serviceInterface)
Lookup all matching services. |
IService[] |
lookupAll(Class serviceInterface,
String name)
Lookup all matching services with a specified service name. |
void |
remove(IService serviceInstance)
Remove a service from the registery. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ServiceRegistry getInstance()
public void add(IService serviceInstance)
serviceInstance
- the new service instance to addpublic void remove(IService serviceInstance)
serviceInstance
- the service instance to removepublic IService[] lookupAll(Class serviceInterface)
serviceInterface
- the desired type of service
public IService lookup(Class serviceInterface)
serviceInterface
- the desired type of service
public IService[] lookupAll(Class serviceInterface, String name)
serviceInterface
- the desired type of servicename
- the desired service name
public IService lookup(Class serviceInterface, String name)
serviceInterface
- the desired type of servicename
- the desired service name
|
SunSPOT API V5.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |