org.apache.log.output.jms
Class ObjectMessageBuilder

java.lang.Object
  extended byorg.apache.log.output.jms.ObjectMessageBuilder
All Implemented Interfaces:
MessageBuilder

public class ObjectMessageBuilder
extends java.lang.Object
implements MessageBuilder

Basic message factory that stores LogEvent in Message.

Author:
Avalon Development Team, Peter Donald

Constructor Summary
ObjectMessageBuilder()
           
 
Method Summary
 javax.jms.Message buildMessage(javax.jms.Session session, LogEvent event)
          Creation of a new message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectMessageBuilder

public ObjectMessageBuilder()
Method Detail

buildMessage

public javax.jms.Message buildMessage(javax.jms.Session session,
                                      LogEvent event)
                               throws javax.jms.JMSException
Creation of a new message.

Specified by:
buildMessage in interface MessageBuilder
Parameters:
session - the session against which the message will be created
event - the log event
Returns:
the message
Throws:
javax.jms.JMSException - if a messaging error occurs


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.