org.codehaus.waffle.bind.ognl
Class OgnlBindErrorMessageResolver

java.lang.Object
  extended by org.codehaus.waffle.bind.ognl.OgnlBindErrorMessageResolver
All Implemented Interfaces:
BindErrorMessageResolver

public class OgnlBindErrorMessageResolver
extends java.lang.Object
implements BindErrorMessageResolver

Ognl-based BindErrorMessageResolver, which uses the following convention for the message resource bundles: all bind error keys use prefix "bind.error." to which the type object it appended, eg

The default bind error also has a default message (cf OgnlBindErrorMessageResolver#DEFAULT_MESSAGE) if the default key is not found.

Author:
Michael Ward, Mauro Talevi

Constructor Summary
OgnlBindErrorMessageResolver(MessageResources messageResources)
           
 
Method Summary
protected  java.lang.String findBindErrorMessageKey(java.lang.Class<?> type)
           
 java.lang.String resolve(java.lang.Object model, java.lang.String propertyName, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OgnlBindErrorMessageResolver

public OgnlBindErrorMessageResolver(MessageResources messageResources)
Method Detail

resolve

public java.lang.String resolve(java.lang.Object model,
                                java.lang.String propertyName,
                                java.lang.String value)
Specified by:
resolve in interface BindErrorMessageResolver

findBindErrorMessageKey

protected java.lang.String findBindErrorMessageKey(java.lang.Class<?> type)


Copyright © 2008. All Rights Reserved.