Example usage for com.liferay.portal.kernel.messaging DestinationNames EXPORT_IMPORT_LIFECYCLE_EVENT_SYNC

List of usage examples for com.liferay.portal.kernel.messaging DestinationNames EXPORT_IMPORT_LIFECYCLE_EVENT_SYNC

Introduction

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

Prototype

String EXPORT_IMPORT_LIFECYCLE_EVENT_SYNC

To view the source code for com.liferay.portal.kernel.messaging DestinationNames EXPORT_IMPORT_LIFECYCLE_EVENT_SYNC.

Click Source Link

Usage

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

License:Open Source License

@Activate
protected void activate(BundleContext bundleContext) {
    _bundleContext = bundleContext;/*from w w w  . j av  a2s  . c om*/

    registerDestination(bundleContext, DestinationConfiguration.DESTINATION_TYPE_SERIAL,
            DestinationNames.EXPORT_IMPORT_LIFECYCLE_EVENT_ASYNC);
    registerDestination(bundleContext, DestinationConfiguration.DESTINATION_TYPE_SYNCHRONOUS,
            DestinationNames.EXPORT_IMPORT_LIFECYCLE_EVENT_SYNC);
}

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

License:Open Source License

protected void fireExportImportLifecycleEvent(ExportImportLifecycleEvent exportImportLifecycleEvent) {

    Message message = new Message();

    message.put("exportImportLifecycleEvent", exportImportLifecycleEvent);

    _messageBus.sendMessage(DestinationNames.EXPORT_IMPORT_LIFECYCLE_EVENT_ASYNC, message.clone());
    _messageBus.sendMessage(DestinationNames.EXPORT_IMPORT_LIFECYCLE_EVENT_SYNC, message.clone());
}

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

License:Open Source License

@Reference(target = "(destination.name=" + DestinationNames.EXPORT_IMPORT_LIFECYCLE_EVENT_SYNC
        + ")", unbind = "-")
protected void setDestination(Destination destination) {
}