/** * {@inheritDoc} */ @Override public boolean getThrowExceptionOnMissingResource() { return application.getResourceSettings().getThrowExceptionOnMissingResource(); }
/** * 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(); }
/** * @return the result of {@link org.apache.wicket.settings.ResourceSettings#getThrowExceptionOnMissingResource()} */ protected boolean getThrowExceptionOnMissingResource() { return Application.get().getResourceSettings().getThrowExceptionOnMissingResource(); } }
/** * 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(); }
/** * @return the result of {@link org.apache.wicket.settings.ResourceSettings#getThrowExceptionOnMissingResource()} */ protected boolean getThrowExceptionOnMissingResource() { return Application.get().getResourceSettings().getThrowExceptionOnMissingResource(); } }
/** * Checks if an exception should be thrown, if a resource file is missing. * * @return if an exception should be thrown */ private boolean shouldThrowExceptionForMissingFile() { return Application.get().getResourceSettings().getThrowExceptionOnMissingResource(); } }
if (resourceSettings.getThrowExceptionOnMissingResource())
if (resourceSettings.getThrowExceptionOnMissingResource())
/** * @see org.apache.wicket.validation.IErrorMessageSource#getMessage(java.lang.String, java.util.Map) */ @Override public final String getMessage(String key, Map<String, Object> vars) { Localizer localizer = Application.get().getResourceSettings().getLocalizer(); // Note: It is important that the default value of "" is provided // to getString() not to throw a MissingResourceException or to // return a default string like "[Warning: String ..." String message = localizer.getString(key, getComponent(), ""); if (Strings.isEmpty(message)) { return null; } else { return new MapVariableInterpolator(message, mergeVariables(vars), Application.get() .getResourceSettings() .getThrowExceptionOnMissingResource()).toString(); } }