All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.n2oapp.framework.ui.servlet.ExposedResourceBundleMessageSource Maven / Gradle / Ivy

There is a newer version: 7.28.2
Show newest version
package net.n2oapp.framework.ui.servlet;

import org.springframework.context.support.ResourceBundleMessageSource;

import java.util.Collections;
import java.util.Locale;
import java.util.ResourceBundle;
import java.util.Set;

public class ExposedResourceBundleMessageSource extends ResourceBundleMessageSource {
    public Set getKeys(String basename, Locale locale) {
        ResourceBundle bundle = getResourceBundle(basename, locale);
        if (bundle == null) return Collections.EMPTY_SET;
        return bundle.keySet();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy