net.sf.dropboxmq.messagetranscoders
Interface MessageTranscoderFactory

All Known Implementing Classes:
DefaultMessageTranscoderFactory

public interface MessageTranscoderFactory

A MessageTranscoderFactory creates MessageTranscoders for encoding and decoding message metadata. Custom factories can be used to read and write metadata for messages that were produced by or will be consumed by clients that do not use DropboxMQ.

Created: 31 Dec 2005

Version:
$Revision: 211 $, $Date: 2010-11-14 14:21:24 -0700 (Sun, 14 Nov 2010) $
Author:
Dwayne Schultz

Method Summary
 MessageTranscoder getMessageTranscoder(Destination destination, Configuration configuration)
          Creates a MessageTranscoders for encoding and decoding message metadata.
 

Method Detail

getMessageTranscoder

MessageTranscoder getMessageTranscoder(Destination destination,
                                       Configuration configuration)
Creates a MessageTranscoders for encoding and decoding message metadata. Implementations may choose to create different types of transcoders based on the destinationName or information in the environment.

Parameters:
destination - the destination for which the MessageTranscoder is being created.
configuration - the configuration that was passed through the JNDI lookup.
Returns:
the newly created MessageTranscoder