org.apache.myfaces.extensions.validator.core.validation.message.resolver
Interface MessageResolver

All Known Implementing Classes:
AbstractValidationErrorMessageResolver, DefaultValidationErrorMessageResolver, DefaultValidationErrorMessageResolver, DefaultValidationErrorMessageResolver, JpaValidationErrorMessageResolver

public interface MessageResolver

A MessageResolver is responsible for loading the message for a given key and locale. The message-source and format depends on the implementation of the resolver.

Since:
1.x.1
Author:
Gerhard Petracek

Method Summary
 String getMessage(String key, Locale locale)
          Loads a message-text for the given message-key and locale.
 

Method Detail

getMessage

String getMessage(String key,
                  Locale locale)
Loads a message-text for the given message-key and locale.

Parameters:
key - key which identifies a message-text
locale - the target locale of the message
Returns:
message-text


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