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

All Superinterfaces:
Serializable

public interface MessageResolver
extends Serializable

Implementations have to resolve the text stored for a given key in the message-source they are aware of


Field Summary
static String MISSING_RESOURCE_MARKER
           
 
Method Summary
 String getMessage(MessageContext messageContext, String messageDescriptor, Map<Class,MessagePayload> payload)
           
 

Field Detail

MISSING_RESOURCE_MARKER

static final String MISSING_RESOURCE_MARKER
See Also:
Constant Field Values
Method Detail

getMessage

String getMessage(MessageContext messageContext,
                  String messageDescriptor,
                  Map<Class,MessagePayload> payload)
Parameters:
messageContext - the current MessageContext
messageDescriptor - the message key (or in-lined text) of the current message
payload - the payload of the message e.g. to use different message sources
Returns:
the final but not interpolated message text


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