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

SystemServiceRequestorLocal

public final class SystemServiceRequestorLocal extends SystemServiceRequestor

Fields Summary
private SystemServiceManager
serviceManager
Constructors Summary
SystemServiceRequestorLocal(SystemServiceManager serviceManager)

        this.serviceManager = serviceManager;
    
Methods Summary
private SystemServiceConnectiondoRequestService(java.lang.String serviceID)

        SystemService service = serviceManager.getService(serviceID);
        if (service == null) {
            return null;
        }

        Isolate is = Isolate.currentIsolate();
        Link serviceToClient = Link.newLink(is, is);
        Link clientToService = Link.newLink(is, is);

        SystemServiceConnectionLinks linksService = 
            new SystemServiceConnectionLinks(serviceToClient, clientToService);

        SystemServiceConnectionLinks linksClient = 
            new SystemServiceConnectionLinks(clientToService, serviceToClient);

        SystemServiceConnection conService = 
            new SystemServiceConnectionImpl(linksService);

        SystemServiceConnection conClient = 
            new SystemServiceConnectionImpl(linksClient);

        service.acceptConnection(conService);

        return conClient;
    
public SystemServiceConnectionrequestService(java.lang.String serviceID)

        synchronized (this) {
            return doRequestService(serviceID);
        }