public interface PropertyLoaderProperties
Properties
interface to provide localized texts for use by the
PropertyLoader
class itself, such as for reporting errors for
improperly structured localization classes, etc.
And implementation of this interface should be generated via
PropertyLoader.getProperties(Class)
.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
cannotInstantiateStrategy(java.lang.Class<? extends PropertyResourceStrategy<?>> strategy)
Load the property with the key
property.loader.cannot.instantiate.strategy . |
java.lang.String |
localeChanged(LocaleProvider manager,
java.util.Locale locale)
Load the property with the key
property.loader.locale.changed . |
java.lang.String |
mustBeInterface(java.lang.Class<?> accessor)
Load the property with the key
property.loader.must.be.interface . |
default java.lang.String |
propertyValueTypeNotSupported(java.lang.reflect.AnnotatedType type,
java.lang.String key)
Load the property with the key
property.loader.illegal.return.type . |
java.lang.String |
propertyValueTypeNotSupported(java.lang.String typeName,
java.lang.String key) |
java.lang.String |
translationNotFoundMessage(java.lang.String key)
Load the property with the key
property.loader.translation.not.found.message . |
java.lang.String mustBeInterface(java.lang.Class<?> accessor)
property.loader.must.be.interface
.accessor
- the accessor to localizedefault java.lang.String propertyValueTypeNotSupported(java.lang.reflect.AnnotatedType type, java.lang.String key)
property.loader.illegal.return.type
.type
- the type of the property to parsekey
- the key for the value with the illegal typejava.lang.String propertyValueTypeNotSupported(java.lang.String typeName, java.lang.String key)
java.lang.String translationNotFoundMessage(java.lang.String key)
property.loader.translation.not.found.message
.key
- the method to find a translation forjava.lang.String localeChanged(LocaleProvider manager, java.util.Locale locale)
property.loader.locale.changed
.manager
- managerlocale
- the new localejava.lang.String cannotInstantiateStrategy(java.lang.Class<? extends PropertyResourceStrategy<?>> strategy)
property.loader.cannot.instantiate.strategy
.strategy
- the requested strategy