Package org.eclipse.ecf.remoteservice

Examples of org.eclipse.ecf.remoteservice.IRemoteServiceRegistration.unregister()


    IRemoteServiceReference[] allRefs = containerAdapter.getAllRemoteServiceReferences(IConcatService.class.getName(), null);
    assertNotNull(allRefs);
    assertTrue(allRefs.length == 1);
   
    // Unregister
    registration.unregister();
  }

  public void testGetAllLocalRemoteServiceReference() throws Exception {
    // First register some service locally
    IRemoteServiceRegistration registration = containerAdapter.registerRemoteService(new String[] { IConcatService.class.getName() }, createConcatService(), null);
View Full Code Here


    IRemoteServiceReference[] allRefs = containerAdapter.getAllRemoteServiceReferences(null, null);
    assertNotNull(allRefs);
    assertTrue(allRefs.length == 1);
   
    // Unregister
    registration.unregister();
  }

  protected Object createConcatService() {
    return new IConcatService() {
      public String concat(String string1, String string2) {
View Full Code Here

        IConcatService.class.getName(), createService(),
        customizeProperties(null), SLEEPTIME);
    assertNotNull(reg);
    assertNotNull(reg.getContainerID());

    reg.unregister();
    Thread.sleep(SLEEPTIME);
  }

  protected ID getConnectTargetID() {
    return null;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.