Package io.rincl
Interface Rincled
public interface Rincled
Mixin interface to provide quick-and-easy resources i18n support to a class.
A class implementing this interface can simply call the getResources()
method to retrieve i18n resources.
- Author:
- Garret Wilson
-
Method Summary
Modifier and TypeMethodDescriptiondefault Resources
Retrieves resources for the class.default Resources
getResources
(Locale locale) Retrieves resources related to a specified locale for the class.
-
Method Details
-
getResources
Retrieves resources for the class.- Returns:
- Access to configured resources for the implementing class.
- Throws:
io.confound.config.ConfigurationException
- See Also:
-
getResources
@Nonnull default Resources getResources(@Nonnull Locale locale) throws io.confound.config.ConfigurationException Retrieves resources related to a specified locale for the class.- Parameters:
locale
- The locale for which resources should be returned.- Returns:
- Access to configured resources for the implementing class.
- Throws:
NullPointerException
- if the given locale isnull
.io.confound.config.ConfigurationException
- if there is a configuration error.- See Also:
-