Java org.springframework.context.support ResourceBundleMessageSource fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.context.support ResourceBundleMessageSource fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.context.support ResourceBundleMessageSource.

The text is from its open source code.

Subclass

org.springframework.context.support.ResourceBundleMessageSource has subclasses.
Click this link to see all its subclasses.

Constructor

Method

SetgetBasenameSet()
Return this MessageSource 's basename set, containing entries in the order of registration.
StringgetMessage(String code, @Nullable Object[] args, Locale locale)
voidsetBasename(String basename)
Set a single basename, following the basic ResourceBundle convention of not specifying file extension or language codes.
voidsetBasenames(String... basenames)
Set an array of basenames, each following the basic ResourceBundle convention of not specifying file extension or language codes.
voidsetBeanClassLoader(ClassLoader classLoader)
voidsetBundleClassLoader(ClassLoader classLoader)
Set the ClassLoader to load resource bundles with.
voidsetCacheSeconds(int cacheSeconds)
Set the number of seconds to cache loaded properties files.
voidsetDefaultEncoding(@Nullable String defaultEncoding)
Set the default charset to use for parsing properties files.
voidsetFallbackToSystemLocale(boolean fallbackToSystemLocale)
Set whether to fall back to the system Locale if no files for a specific Locale have been found.
voidsetParentMessageSource(@Nullable MessageSource parent)
voidsetUseCodeAsDefaultMessage(boolean useCodeAsDefaultMessage)
Set whether to use the message code as default message instead of throwing a NoSuchMessageException.