|
||||||||||
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 ContextService
UnknownServiceException
ServiceNotReachableException
public int removeLokalService(ServiceHandle serviceHandle)
removeLokalService
in interface ContextService
public 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 ContextService
UnknownServiceException
ServiceNotReachableForCriteriaException
public RawDataService getService(ServiceHandle handle)
getService
in interface ContextService
public RawDataService getService(ServiceHandle handle, Criteria criteria)
getService
in interface ContextService
public void start()
Service
start
in interface Service
public boolean isStarted()
Service
isStarted
in interface Service
public void stop()
Service
stop
in interface Service
public LocalDeviceContext getLocalDeviceContext()
getLocalDeviceContext
in interface ContextService
public void initLocalContext(LocalDeviceContext localContext)
initLocalContext
in interface ContextService
public void addManagementSevice(ContextManagementService service)
addManagementSevice
in interface ContextService
public void removeManagementSevice(ContextManagementHandle serviceHandle)
removeManagementSevice
in interface ContextService
public ContextManagementService getManagementSevice(ContextManagementHandle handle)
getManagementSevice
in interface ContextService
public void addServiceObjectListener(ServiceObjectListener listener)
ContextService
addServiceObjectListener
in interface ContextService
listener
- the listener to add.public void lookupServiceObject(java.lang.String id, ServiceHandle handle, Criteria criteria) throws UnknownServiceException, ServiceNotReachableForCriteriaException
ContextService
lookupServiceObject
in interface ContextService
handle
- 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
ServiceNotReachableForCriteriaException
public void removeServiceObjectListener(ServiceObjectListener listener)
ContextService
removeServiceObjectListener
in interface ContextService
listener
- 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 |