Tuesday, October 1, 2013

A Simple Message Converter Interface over SpringApacheMQ -> Capital Digs In for Long Haul

package org.nanotek.mq.converters;

import org.nanotek.util.Base;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageProperties;

public interface MessageConverter<M extends Message> {

        public abstract M toMessage(Base<?> arg , MessageProperties properties);
        public abstract Base<?> fromMessage(org.springframework.amqp.core.Message arg0);

}
Prefiro a vida assim.
Long Hall