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

dps.webapplication.i18n.DefaultLocale Maven / Gradle / Ivy

There is a newer version: 1.2.5
Show newest version
package dps.webapplication.i18n;

import dps.commons.startup.Startup;
import dps.webapplication.configuration.Settings;

import javax.annotation.PostConstruct;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;

@ApplicationScoped
@Startup
public class DefaultLocale extends AbstractLocale {

    @Inject
    Settings applicationSettings;

    @Override
    AbstractLocale getParentLocale() {
        return null;
    }

    @PostConstruct
    void init() {
        this.setLocale(applicationSettings.getLocale());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy