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

com.swak.i18n.aggregate.DelegatingResourceBundleLocator Maven / Gradle / Ivy

The newest version!
package com.swak.i18n.aggregate;

import java.util.Locale;
import java.util.ResourceBundle;

/**
 * @author colley.ma
 * @since 3.0.0
 */
public class DelegatingResourceBundleLocator implements ResourceBundleLocator {

    private final ResourceBundleLocator delegate;

    public DelegatingResourceBundleLocator(ResourceBundleLocator delegate) {
        this.delegate = delegate;
    }

    @Override
    public ResourceBundle getResourceBundle(Locale locale) {
        return delegate == null ? null : delegate.getResourceBundle( locale );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy