Example usage for com.liferay.portal.kernel.messaging Destination destroy

List of usage examples for com.liferay.portal.kernel.messaging Destination destroy

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.messaging Destination destroy.

Prototype

public void destroy();

Source Link

Usage

From source file:com.liferay.exportimport.lifecycle.ExportImportLifecycleManagerImpl.java

License:Open Source License

@Deactivate
protected void deactivate() {
    for (ServiceRegistration<Destination> serviceRegistration : _serviceRegistrations) {

        Destination destination = _bundleContext.getService(serviceRegistration.getReference());

        serviceRegistration.unregister();

        destination.destroy();
    }//from ww w .j a va2s  . com

    _bundleContext = null;
}

From source file:com.liferay.osb.scv.internal.messaging.SourceUserMapperMessagingConfigurator.java

License:Open Source License

@Deactivate
protected void deactivate() {
    if (_destinationServiceRegistration != null) {
        Destination destination = _bundleContext.getService(_destinationServiceRegistration.getReference());

        _destinationServiceRegistration.unregister();

        destination.destroy();
    }//from  w w  w  .j  a v  a2 s  . c o m

    _bundleContext = null;
}

From source file:com.liferay.sync.internal.configurator.SyncConfigurator.java

License:Open Source License

@Deactivate
protected void deactivate() {
    if (_dlSyncEventProcessorServiceRegistration != null) {
        Destination destination = _bundleContext
                .getService(_dlSyncEventProcessorServiceRegistration.getReference());

        _dlSyncEventProcessorServiceRegistration.unregister();

        destination.destroy();
    }//from  w  w  w  . j a  va2  s  .com

    if (_syncMaintenanceProcessorServiceRegistration != null) {
        Destination destination = _bundleContext
                .getService(_syncMaintenanceProcessorServiceRegistration.getReference());

        _syncMaintenanceProcessorServiceRegistration.unregister();

        destination.destroy();
    }

    _bundleContext = null;
}