Package org.eclipse.ecf.core

Examples of org.eclipse.ecf.core.IContainer.dispose()


    final ServiceReference reference = serviceRegistration.getReference();
    final IContainer aContainer = (DnsSdDiscoveryContainerAdapter) context.getService(reference);
   
    serviceRegistration.unregister();
    final IContainer container = (IContainer) aContainer.getAdapter(IContainer.class);
    container.dispose();
    container.disconnect();
  }
 
  /**
   * A ManagedServiceFactory capable to handle DnsSdDiscoveryContainerAdapters
View Full Code Here


    assertNotNull(container2);
  }

  public void testDispose() throws Exception {
    IContainer container = createRestContainer(RestConstants.TEST_DE_TARGET);
    container.dispose();
    assertNull(container.getConnectedID());
  }

}
View Full Code Here

    if (container == null) {
      interpreter.println("Container not found to remove");
      return;
    }
    // Dispose the container instance
    container.dispose();
    interpreter.println("Container destroyed.");
  }
 
  private ID createID(CommandInterpreter interpreter, String namespace, String val) {
    try {
View Full Code Here

  public void dispose() {
    disconnect();
    synchronized (containers) {
      for (final Iterator itr = containers.iterator(); itr.hasNext();) {
        final IContainer container = (IContainer) itr.next();
        container.dispose();
      }
      containers.clear();
    }
    targetID = null;
    super.dispose();
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.