/** * If true, than throw an exception if a property key is not found. If false, just a warning is * issued in the logged. * * @return throwExceptionIfPropertyNotFound */ private static boolean isThrowExceptionIfPropertyNotFound() { return Application.get().getResourceSettings().getThrowExceptionOnMissingResource(); }
@Override public String substitute(String string, Map<String, Object> vars) throws IllegalStateException { return new MapVariableInterpolator(string, vars, Application.get() .getResourceSettings() .getThrowExceptionOnMissingResource()).toString(); }
/** * @see org.apache.wicket.validation.IErrorMessageSource#substitute(java.lang.String, * java.util.Map) */ public String substitute(final String string, final Map<String, Object> vars) throws IllegalStateException { return new MapVariableInterpolator(string, vars, Application.get().getResourceSettings() .getThrowExceptionOnMissingResource()).toString(); }
private String substitute(final String string, final Map<String, Object> vars) throws IllegalStateException { return new MapVariableInterpolator(string, vars, Application.get() .getResourceSettings() .getThrowExceptionOnMissingResource()).toString(); }
/** * @see org.apache.wicket.validation.IErrorMessageSource#substitute(java.lang.String, * java.util.Map) */ public String substitute(String string, Map vars) throws IllegalStateException { return new MapVariableInterpolator(string, addDefaultVars(vars), Application.get() .getResourceSettings() .getThrowExceptionOnMissingResource()).toString(); }
/** * @see org.apache.wicket.validation.IErrorMessageSource#substitute(java.lang.String, * java.util.Map) */ public final String substitute(String string, Map<String, Object> vars) throws IllegalStateException { return new MapVariableInterpolator(string, mergeVariables(vars), Application.get() .getResourceSettings() .getThrowExceptionOnMissingResource()).toString(); }
if (resourceSettings.getThrowExceptionOnMissingResource())
if (resourceSettings.getThrowExceptionOnMissingResource())