org.apache.myfaces.extensions.cdi.message.api
Interface MessageFactory

All Superinterfaces:
Serializable

public interface MessageFactory
extends Serializable

allows to customize the creation of a message. only use it if you would like to create a different type of message via the fluent api (MessageBuilder) in all other cases you can also use MessageResolver e.g. to customize messages e.g. based on payload


Method Summary
 Message create(String messageDescriptor, MessagePayload messagePayload)
           
 

Method Detail

create

Message create(String messageDescriptor,
               MessagePayload messagePayload)
Parameters:
messageDescriptor - the message key (or inline-message) for the message
messagePayload - the initial payload of the message
Returns:
a new message instance


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.