org.apache.myfaces.extensions.validator.core.validation.message.resolver
Interface MessageResolver
- All Known Implementing Classes:
- AbstractValidationErrorMessageResolver, DefaultValidationErrorMessageResolver
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
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-textlocale
- the target locale of the message
- Returns:
- message-text
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.