public void stop(Deployment dep) { SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider(); if (registry == null) registry = spiProvider.getSPI(EndpointRegistryFactory.class).getEndpointRegistry(); for (Endpoint ep : dep.getService().getEndpoints()) { registry.unregister(ep); } }
@Override public void stop(final StopContext context) { ROOT_LOGGER.stopping(name); endpoint.setSecurityDomainContext(null); if (hasWebservicesMD(endpoint)) { pclWebAppControllerValue.getValue().decrementUsers(); } endpointRegistryValue.getValue().unregister(endpoint); final List<RecordProcessor> processors = endpoint.getRecordProcessors(); for (final RecordProcessor processor : processors) { unregisterRecordProcessor(processor, endpoint); } }