Search in sources :

Example 1 with MessageResourceManager

use of net.dempsy.messages.MessageResourceManager in project Dempsy by Dempsy.

the class Container method setMessageProcessor.

@SuppressWarnings("unchecked")
public Container setMessageProcessor(final MessageProcessorLifecycle<?> prototype) {
    if (prototype == null)
        throw new IllegalArgumentException("The container for cluster(" + clusterId + ") cannot be supplied a null MessageProcessor");
    this.prototype = (MessageProcessorLifecycle<Object>) prototype;
    final MessageResourceManager resourceManager = this.prototype.manager();
    this.hasDisposition = resourceManager != null;
    this.disposition = hasDisposition ? resourceManager : new DummyMessageResourceManager();
    return this;
}
Also used : DummyMessageResourceManager(net.dempsy.messages.DummyMessageResourceManager) MessageResourceManager(net.dempsy.messages.MessageResourceManager) DummyMessageResourceManager(net.dempsy.messages.DummyMessageResourceManager)

Aggregations

DummyMessageResourceManager (net.dempsy.messages.DummyMessageResourceManager)1 MessageResourceManager (net.dempsy.messages.MessageResourceManager)1