anima.message
Interface IMessageFactory

All Known Implementing Classes:
JavaLocalMessageFactory

public interface IMessageFactory

Author:
Andre Santanche

Method Summary
 IBroker createBroker()
          Creates an instance of a Broker, witch can dispatch a synchronous and asynchronous messages or even create an instance of a MessageFactory
 IMessage createMessage(java.lang.String label, ISourceMessage source)
          Produces a message without parameters.
 IMessage createMessage(java.lang.String label, ISourceMessage source, java.lang.Object parameters)
          Produces a message with parameters.
 

Method Detail

createBroker

IBroker createBroker()
Creates an instance of a Broker, witch can dispatch a synchronous and asynchronous messages or even create an instance of a MessageFactory

Returns:
A Broker

createMessage

IMessage createMessage(java.lang.String label,
                       ISourceMessage source)
Produces a message without parameters.

Parameters:
label - message label
source - object witch is sending the message
Returns:
message returned by the receiver

createMessage

IMessage createMessage(java.lang.String label,
                       ISourceMessage source,
                       java.lang.Object parameters)
Produces a message with parameters.

Parameters:
label - message label
source - object witch is sending the message
parameters - parameters of the message
Returns:
message returned by the receiver


Copyright © 2007. All Rights Reserved.