|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.demac.impl.j2me.context.ContextServiceImpl
public class ContextServiceImpl
J2ME implementation of the ContextService.
| Method Summary | |
|---|---|
void |
addManagementSevice(ContextManagementService service)
|
void |
addServiceObjectListener(ServiceObjectListener listener)
Method to add a listener to the list of ServiceObjectListeners. |
static ContextService |
getContextService()
|
LocalDeviceContext |
getLocalDeviceContext()
|
ContextManagementService |
getManagementSevice(ContextManagementHandle handle)
|
RawDataService |
getService(ServiceHandle handle)
|
RawDataService |
getService(ServiceHandle handle,
Criteria criteria)
|
void |
informServiceListeners(java.lang.String id,
ServiceObject service)
|
void |
initLocalContext(LocalDeviceContext localContext)
|
boolean |
isServiceAvailable(ServiceHandle handle,
java.lang.String type)
|
boolean |
isServiceAvailable(ServiceHandle handle,
java.lang.String type,
Criteria criteria)
|
boolean |
isStarted()
Method to determine whether the Service is started or not. |
java.util.Iterator |
localAvailibleServices()
Methode zum Auflisten aller lokal verfügbaren Dienste |
void |
lookupServiceObject(java.lang.String id,
ServiceHandle handle,
Criteria criteria)
Method to look up Services in the local registry and in the vicinity. |
int |
removeLokalService(ServiceHandle serviceHandle)
Methode zum Loeschen lokal verfügbaren Dienste |
void |
removeManagementSevice(ContextManagementHandle serviceHandle)
|
void |
removeServiceObjectListener(ServiceObjectListener listener)
Method to remove a listener from the list of ServiceObjectListeners. |
void |
start()
Method to start the service. |
void |
stop()
Method to stop the service. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final ContextService getContextService()
public boolean isServiceAvailable(ServiceHandle handle,
java.lang.String type)
throws UnknownServiceException,
ServiceNotReachableException
isServiceAvailable in interface ContextServiceUnknownServiceException
ServiceNotReachableExceptionpublic int removeLokalService(ServiceHandle serviceHandle)
removeLokalService in interface ContextServicepublic java.util.Iterator localAvailibleServices()
localAvailibleServices in interface ContextService
public boolean isServiceAvailable(ServiceHandle handle,
java.lang.String type,
Criteria criteria)
throws UnknownServiceException,
ServiceNotReachableForCriteriaException
isServiceAvailable in interface ContextServiceUnknownServiceException
ServiceNotReachableForCriteriaExceptionpublic RawDataService getService(ServiceHandle handle)
getService in interface ContextService
public RawDataService getService(ServiceHandle handle,
Criteria criteria)
getService in interface ContextServicepublic void start()
Service
start in interface Servicepublic boolean isStarted()
Service
isStarted in interface Servicepublic void stop()
Service
stop in interface Servicepublic LocalDeviceContext getLocalDeviceContext()
getLocalDeviceContext in interface ContextServicepublic void initLocalContext(LocalDeviceContext localContext)
initLocalContext in interface ContextServicepublic void addManagementSevice(ContextManagementService service)
addManagementSevice in interface ContextServicepublic void removeManagementSevice(ContextManagementHandle serviceHandle)
removeManagementSevice in interface ContextServicepublic ContextManagementService getManagementSevice(ContextManagementHandle handle)
getManagementSevice in interface ContextServicepublic void addServiceObjectListener(ServiceObjectListener listener)
ContextService
addServiceObjectListener in interface ContextServicelistener - the listener to add.
public void lookupServiceObject(java.lang.String id,
ServiceHandle handle,
Criteria criteria)
throws UnknownServiceException,
ServiceNotReachableForCriteriaException
ContextService
lookupServiceObject in interface ContextServicehandle - org.demac.context.registry.ServiceHandle of the service that should be looked up.criteria - org.demac.context.base.Criteria representing the non-functional properties that must be regarded.
UnknownServiceException
ServiceNotReachableForCriteriaExceptionpublic void removeServiceObjectListener(ServiceObjectListener listener)
ContextService
removeServiceObjectListener in interface ContextServicelistener - the listener to remove.
public void informServiceListeners(java.lang.String id,
ServiceObject service)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||