/** * {@inheritDoc} */ @Override public void setUseDefaultOnMissingResource(final boolean useDefaultOnMissingResource) { application.getResourceSettings().setUseDefaultOnMissingResource( useDefaultOnMissingResource); } }
@Override public String get() { return application.getResourceSettings().getParentFolderPlaceholder(); } }
@Override public String get() { return application.getResourceSettings().getParentFolderPlaceholder(); } }
/** * {@inheritDoc} */ @Override public boolean getThrowExceptionOnMissingResource() { return application.getResourceSettings().getThrowExceptionOnMissingResource(); }
/** * Get the properties file factory which loads the properties based on locale and style from * *.properties and *.xml files * * @return properties factory */ protected IPropertiesFactory getPropertiesFactory() { return Application.get().getResourceSettings().getPropertiesFactory(); }
/** * @return Same as Application.get().getResourceSettings().getLocalizer() */ public static Localizer get() { return Application.get().getResourceSettings().getLocalizer(); }
/** * Convenience method to provide easy access to the localizer object within any component. * * @return The localizer object */ public final Localizer getLocalizer() { return getApplication().getResourceSettings().getLocalizer(); }
/** * In case you want to provide your own list of string resource loaders * * @return List of string resource loaders */ protected List<IStringResourceLoader> getStringResourceLoaders() { return Application.get().getResourceSettings().getStringResourceLoaders(); }
/** * Gets the localizer that is being used by this string resource model. * * @return The localizer */ public Localizer getLocalizer() { return Application.get().getResourceSettings().getLocalizer(); }
/** * @return the result of {@link org.apache.wicket.settings.ResourceSettings#getThrowExceptionOnMissingResource()} */ protected boolean getThrowExceptionOnMissingResource() { return Application.get().getResourceSettings().getThrowExceptionOnMissingResource(); } }
/** * Gets the localizer that is being used by this string resource model. * * @return The localizer */ public Localizer getLocalizer() { return Application.get().getResourceSettings().getLocalizer(); }
/** * Get the properties file factory which loads the properties based on locale and style from * *.properties and *.xml files * * @return properties factory */ protected IPropertiesFactory getPropertiesFactory() { return Application.get().getResourceSettings().getPropertiesFactory(); }
/** * {@inheritDoc} */ @Override public String getPackageResourceGuard() { return Stringz.className(application.getResourceSettings().getPackageResourceGuard()); }
/** * In case you want to provide your own list of string resource loaders * * @return List of string resource loaders */ protected List<IStringResourceLoader> getStringResourceLoaders() { return Application.get().getResourceSettings().getStringResourceLoaders(); }
/** * 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(); } }
@Override public String getObject() { // this shouldn't be called always wrapped! return Application.get() .getResourceSettings() .getLocalizer() .getString(resourceKey, null, null, null, null, defaultValue); }
@Override public FileCleaningTracker getFileCleaningTracker() { IFileCleaner fileCleaner = Application.get() .getResourceSettings() .getFileCleaner(); return new FileCleanerTrackerAdapter(fileCleaner); } });
@Override protected String load() { return Application.get() .getResourceSettings() .getLocalizer() .getString(resourceKey, component, null, null, null, defaultValue); }
@Override protected String load() { return Application.get() .getResourceSettings() .getLocalizer() .getString(resourceKey, component, null, null, null, defaultValue); }