@Test public void testUnregister() { Service service = _domain.registerService(new QName("TestService"), new InOnlyService(), new MockHandler()); Assert.assertEquals(1, _domain.getServiceRegistry().getServices().size()); service.unregister(); Assert.assertEquals(0, _domain.getServiceRegistry().getServices().size()); }
@Override public void unregister() { _domain.getServiceRegistry().unregisterService(this); _domain.getEventPublisher().publish(new ServiceUnregistrationEvent(this)); }
ServiceImpl implements Service { @Override public void unregister() { _domain.getServiceRegistry().unregisterService(this); _domain.getEventPublisher().publish(new ServiceUnregistrationEvent(this)); } }
ServiceImpl implements Service { @Override public void unregister() { _domain.getServiceRegistry().unregisterService(this); _domain.getEventPublisher().publish(new ServiceUnregistrationEvent(this)); } ServiceImpl(QName name,
            ServiceInterface serviceInterface,
            DomainImpl domain,
            ExchangeHandler providerHandler);  ServiceImpl(QName name,
            ServiceInterface serviceInterface,
            DomainImpl domain,
            ExchangeHandler providerHandler,
            ServiceMetadata metadata); }
ServiceImpl implements Service { @Override public void unregister() { _domain.getServiceRegistry().unregisterService(this); _domain.getEventPublisher().publish(new ServiceUnregistrationEvent(this)); } ServiceImpl(QName name,
            ServiceInterface serviceInterface,
            DomainImpl domain,
            ExchangeHandler providerHandler);  ServiceImpl(QName name,
            ServiceInterface serviceInterface,
            DomainImpl domain,
            ExchangeHandler providerHandler,
            ServiceMetadata metadata); @Override ServiceInterface getInterface(); @Override QName getName(); @Override ServiceDomain getDomain(); @Override void unregister(); @Override ExchangeHandler getProviderHandler(); @Override String toString(); @Override ServiceMetadata getServiceMetadata(); }
ServiceImpl implements Service { @Override public void unregister() { _domain.getServiceRegistry().unregisterService(this); _domain.getEventPublisher().publish(new ServiceUnregistrationEvent(this)); } ServiceImpl(QName name,
            ServiceInterface serviceInterface,
            DomainImpl domain,
            ExchangeHandler providerHandler);  ServiceImpl(QName name,
            ServiceInterface serviceInterface,
            DomainImpl domain,
            ExchangeHandler providerHandler,
            ServiceMetadata metadata); @Override ServiceInterface getInterface(); @Override QName getName(); @Override ServiceDomain getDomain(); @Override void unregister(); @Override ExchangeHandler getProviderHandler(); @Override String toString(); @Override ServiceMetadata getServiceMetadata();  }