List of usage examples for com.liferay.portal.kernel.messaging DestinationConfiguration DESTINATION_TYPE_SERIAL
String DESTINATION_TYPE_SERIAL
To view the source code for com.liferay.portal.kernel.messaging DestinationConfiguration DESTINATION_TYPE_SERIAL.
Click Source Link
From source file:com.liferay.adaptive.media.image.internal.configuration.AdaptiveMediaImageConfigurationHelperImpl.java
License:Open Source License
@Activate protected void activate() { DestinationConfiguration destinationConfiguration = new DestinationConfiguration( DestinationConfiguration.DESTINATION_TYPE_SERIAL, AdaptiveMediaImageDestinationNames.ADAPTIVE_MEDIA_IMAGE_CONFIGURATION); Destination destination = _destinationFactory.createDestination(destinationConfiguration); _messageBus.addDestination(destination); }
From source file:com.liferay.adaptive.media.internal.messaging.AdaptiveMediaMessagingConfigurator.java
License:Open Source License
@Activate public void activate(BundleContext bundleContext) { DestinationConfiguration destinationConfiguration = new DestinationConfiguration( DestinationConfiguration.DESTINATION_TYPE_SERIAL, AdaptiveMediaDestinationNames.ADAPTIVE_MEDIA_PROCESSOR); Destination destination = _destinationFactory.createDestination(destinationConfiguration); Dictionary<String, Object> dictionary = new HashMapDictionary<>(); dictionary.put("destination.name", destination.getName()); _serviceRegistration = bundleContext.registerService(Destination.class, destination, dictionary); }
From source file:com.liferay.exportimport.lifecycle.ExportImportLifecycleManagerImpl.java
License:Open Source License
@Activate protected void activate(BundleContext bundleContext) { _bundleContext = bundleContext;// w w w .jav a 2 s.co m 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.resources.importer.internal.messaging.ResourcesImporterHotDeployMessageListener.java
License:Open Source License
protected synchronized void registerDestination() { if ((_bundleContext != null) && (_serviceRegistration == null) && (_destinationFactory != null)) { DestinationConfiguration destinationConfiguration = new DestinationConfiguration( DestinationConfiguration.DESTINATION_TYPE_SERIAL, ResourcesImporterDestinationNames.RESOURCES_IMPORTER); _destination = _destinationFactory.createDestination(destinationConfiguration); Dictionary<String, Object> dictionary = new HashMapDictionary<>(); dictionary.put("destination.name", _destination.getName()); _serviceRegistration = _bundleContext.registerService(Destination.class, _destination, dictionary); }/*from w ww. j a va 2 s. c om*/ }
From source file:com.liferay.sync.internal.configurator.SyncConfigurator.java
License:Open Source License
protected ServiceRegistration<Destination> registerMessageListener(String destinationName) { DestinationConfiguration destinationConfiguration = new DestinationConfiguration( DestinationConfiguration.DESTINATION_TYPE_SERIAL, destinationName); Destination destination = _destinationFactory.createDestination(destinationConfiguration); Dictionary<String, Object> destinationProperties = new HashMapDictionary<>(); destinationProperties.put("destination.name", destination.getName()); return _bundleContext.registerService(Destination.class, destination, destinationProperties); }