Interface MetadataMessagesBasename
-
- All Known Implementing Classes:
CommonComponentMessages
public interface MetadataMessagesBasename
Stores a classpath-relative location to a message bundle, intended to be used in a
MessageSource
.NOTE: The bundle name should be unique or an exception
MetadataI18nInitializationException
will be thrown.To register this basename, add an entry into spring.factories with this FQN as the key, and the value as the custom basename to add. Example:
com.broadleafcommerce.metadata.i18n.MetadataMessagesBasename = com.mycompany.MyCustomBasename
- Author:
- Phillip Verheyden (phillipuniverse)
- See Also:
ResourceBundleMessageSource
,MetadataI18nInitializationException
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getBasename()
The classpath-relative location of the base name for a message bundle.
-
-
-
Method Detail
-
getBasename
@NonNull String getBasename()
The classpath-relative location of the base name for a message bundle. This can also return a comma-separated String to indicate multiple files- Returns:
- the basename to a message bundle
-
-