Package org.apache.sis.util.resources

Examples of org.apache.sis.util.resources.IndexedResourceBundle


     */
    public static void warningOccured(final Context context, final Class<?> classe, final String method,
            final Class<? extends IndexedResourceBundle> resources, final short key, final Object... arguments)
    {
        final Locale locale = context != null ? context.getLocale() : null;
        final IndexedResourceBundle bundle;
        if (resources == Errors.class) {
            bundle = Errors.getResources(locale);
        } else if (resources == Messages.class) {
            bundle = Messages.getResources(locale);
        } else {
            throw new IllegalArgumentException(String.valueOf(resources));
        }
        final LogRecord warning = bundle.getLogRecord(Level.WARNING, key, arguments);
        warning.setSourceClassName(classe.getCanonicalName());
        warning.setSourceMethodName(method);
        warningOccured(context, warning);
    }
View Full Code Here

TOP

Related Classes of org.apache.sis.util.resources.IndexedResourceBundle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.