Examples of unregister()


Examples of org.osgi.service.http.HttpService.unregister()

      }
     
      HttpService http = (HttpService)Activator.bc.getService(httpSR);
     
      if(http != null) {
        http.unregister(AXIS2_SERVLET_ALIAS);
        http.unregister(AXIS2ADMIN_SERVLET_ALIAS);
        bc.ungetService(httpSR);
      }
      servletRegistrations.remove(httpSR);
    }
View Full Code Here

Examples of org.osgi.service.http.HttpService.unregister()

                }

                public void removedService(ServiceReference serviceReference, Object o) {
                    HttpService service = (HttpService)_context.getService(serviceReference);
                    if (service != null) {
                        service.unregister(_path);
                    }
                }
            }
        );
        _tracker.open();
View Full Code Here

Examples of org.switchyard.Service.unregister()

    public void testUnregister() {
        Service service = _domain.registerService(new QName("TestService"),
                new InOnlyService(), new MockHandler());
        // test that it was added to the registry
        Assert.assertEquals(1, _domain.getServiceRegistry().getServices().size());
        service.unregister();
        // confirm that it was removed
        Assert.assertEquals(0, _domain.getServiceRegistry().getServices().size());
    }
   
}
View Full Code Here

Examples of org.switchyard.ServiceReference.unregister()

        _domain.addEventObserver(_observer, ReferenceRegistrationEvent.class)
            .addEventObserver(_observer, ReferenceUnregistrationEvent.class);
       
        ServiceReference ref = _domain.registerServiceReference(new QName("test"), new InOutService());
        Assert.assertTrue(_observer.referenceRegistrationCalled);
        ref.unregister();
        Assert.assertTrue(_observer.referenceUnregistrationCalled);
    }

    @Test
    public void testServiceEvents() {
View Full Code Here

Examples of org.virtualbox_4_2.IMachine.unregister()

            .controller(ideController).forceOverwrite(true).cleanUpMode(CleanupMode.Full).build();

      expect(manager.getVBox()).andReturn(vBox).anyTimes();
      expect(vBox.findMachine(vmName)).andReturn(registeredMachine);

      expect(registeredMachine.unregister(mode)).andReturn(mediums);
      expectLastCall().anyTimes();

      expect(registeredMachine.delete(mediums)).andReturn(progress);
      expectLastCall().anyTimes();
View Full Code Here

Examples of org.voltcore.network.Connection.unregister()

                m_clusterInstanceId = new Object[] { timestamp, addr };
            } else {
                if (!(((Long)m_clusterInstanceId[0]).longValue() == instanceIdWhichIsTimestampAndLeaderIp[2]) ||
                        !(((Integer)m_clusterInstanceId[1]).longValue() == instanceIdWhichIsTimestampAndLeaderIp[3])) {
                    // clean up the pre-registered voltnetwork connection/channel
                    c.unregister();
                    throw new IOException(
                            "Cluster instance id mismatch. Current is " + m_clusterInstanceId[0] + "," + m_clusterInstanceId[1] +
                            " and server's was " + instanceIdWhichIsTimestampAndLeaderIp[2] + "," + instanceIdWhichIsTimestampAndLeaderIp[3]);
                }
            }
View Full Code Here

Examples of org.vosao.service.plugin.PluginServiceManager.unregister()

    for (PluginEntity plugin : getDao().getPluginDao().selectEnabled()) {
      try {
        PluginServiceManager manager = getBusiness()
          .getPluginBusiness().getFrontServices(plugin);
        if (manager != null) {
          manager.unregister(bridge);
        }       
      } catch (ClassNotFoundException e) {
        e.printStackTrace();
      } catch (InstantiationException e) {
        e.printStackTrace();
View Full Code Here

Examples of org.waveprotocol.wave.client.common.util.DomHelper.HandlerReferenceSet.unregister()

    }

    public static  void removeJsHandlers(ContentElement element) {
      HandlerReferenceSet handlers = element.getProperty(HANDLERS);
      if (handlers != null) {
        handlers.unregister();
        element.setProperty(HANDLERS, null);
      }
    }
  }
View Full Code Here

Examples of org.xmlBlaster.util.log.XbNotifyHandler.unregister()

      if (this.loggingSet != null)
         this.loggingSet = null;

      XbNotifyHandler hh = XbNotifyHandler.instance();
      hh.unregister(Level.WARNING.intValue(), this);
      hh.unregister(Level.SEVERE.intValue(), this);

      if (this.engineGlob != null && this.mbeanHandle != null)
         this.engineGlob.unregisterMBean(this.mbeanHandle);
View Full Code Here

Examples of org.zeromq.ZMQ.Poller.unregister()

        socketOne.setLinger(0);
        socketOne.close();
        socketTwo.setLinger(0);
        socketTwo.close();

        poller.unregister(socketOne);
        poller.unregister(socketTwo);
       
        context.term();
    }
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.