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;
}
Aggregations