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

hu.blackbelt.osgi.i18n.api.I18nService Maven / Gradle / Ivy

package hu.blackbelt.osgi.i18n.api;

public interface I18nService {

    /**
     * Register an i18N proxy interface to OSGi service registry. The proxy methods resolved as string to access i18n data.
     *
     * @param clazz
     */
     T register(Class clazz);

    /**
     * Unregister an i18N proxy interface from  OSGi service registry.
     * @param clazz
     */
     void unregister(Class clazz);


    /**
     * Get formatted, localized message.
     * @param key
     * @param params
     */
    String format(String key, Object... params);

    /**
     * Get messgae template.
     * @param key
     */
    String getTemplate(String key);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy