FileDocCategorySizeDatePackage
SystemService.javaAPI DocphoneME MR2 API (J2ME)2190Wed May 02 18:00:10 BST 2007com.sun.midp.services

SystemService

public interface SystemService
System service interface. System service runs in AMS Isolate and provides some service for other Isolates, using SystemSeviceConnection as means of communication between service and clients.

Fields Summary
Constructors Summary
Methods Summary
public voidacceptConnection(SystemServiceConnection connection)
Accepts connection. When client requests a service, first, a connection between client and service is created, and then it is passed to service via this method to accept it and start doing its thing. Note: you shouldn't block in this method.

param
connection connection between client and service

public java.lang.StringgetServiceID()
Gets unique service identifier.

return
unique String service identifier

public voidstart()
Starts service. Called when service is about to be requested for the first time. Thus, services can be initialized lazily, only when they are really needed.

public voidstop()
Shutdowns service.