public void doStop()

in hazelcast/src/main/java/org/apache/karaf/cellar/hazelcast/internal/osgi/Activator.java [348:411]


    public void doStop() {
        super.doStop();

        if (groupMBeanRegistration != null) {
            groupMBeanRegistration.unregister();
            groupMBeanRegistration = null;
        }
        if (nodeMBeanRegistration != null) {
            nodeMBeanRegistration.unregister();
            nodeMBeanRegistration = null;
        }
        if (coreMBeanRegistration != null) {
            coreMBeanRegistration.unregister();
            coreMBeanRegistration = null;
        }
        if (synchronizerServiceTracker != null) {
            synchronizerServiceTracker.close();
            synchronizerServiceTracker = null;
        }
        if (groupManager != null) {
            try {
                groupManager.destroy();
            } catch (Exception e) {
                LOGGER.trace("Error occured destroying the group manager", e);
            }
            groupManager = null;
        }
        if (hazelcastServiceFactory != null) {
            hazelcastServiceFactory.destroy();
            hazelcastServiceFactory = null;
        }
        if (hazelcastInstance != null) {
            hazelcastInstance.shutdown();
            hazelcastInstance = null;
        }
        if (discoveryTask != null) {
            discoveryTask.destroy();
            discoveryTask = null;
        }
        if (producer != null) {
            producer.destroy();
            producer = null;
        }
        if (consumer != null) {
            consumer.destroy();
            consumer = null;
        }
        if (extender != null) {
            extender.destroy();
            extender = null;
        }
        if (discoveryServiceTracker != null) {
            discoveryServiceTracker.close();
            discoveryServiceTracker = null;
        }
        if (combinedClassLoader != null) {
            combinedClassLoader.destroy();
            combinedClassLoader = null;
        }
        if (dispatcher != null) {
            dispatcher.destroy();
            dispatcher = null;
        }
    }