public class NlsResourceBundleLocatorImpl extends AbstractLoggableComponent implements NlsResourceBundleLocator
NlsResourceBundleLocator
.Modifier and Type | Field and Description |
---|---|
private List<ResourceBundle> |
nlsBundles |
private ReflectionUtil |
reflectionUtil |
Constructor and Description |
---|
NlsResourceBundleLocatorImpl()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doInitialize()
This method performs the actual
initialization . |
List<ResourceBundle> |
findBundles()
This method automatically finds and creates instances of
ResourceBundle for Locale.ROOT
via NlsTemplateResolver.CLASSPATH_NLS_BUNDLE . |
protected List<ResourceBundle> |
getNlsBundles()
This method gets the
List of ResourceBundle s. |
ReflectionUtil |
getReflectionUtil()
This method gets the
ReflectionUtil . |
private ResourceBundle |
loadNlsBundle(org.slf4j.Logger logger,
DataResource dataResource,
String line) |
private List<ResourceBundle> |
loadNlsBundles() |
void |
setNlsBundles(List<ResourceBundle> nlsBundles) |
void |
setReflectionUtil(ReflectionUtil reflectionUtil) |
createLogger, getLogger
doInitialized, getInitializationState, initialize
private List<ResourceBundle> nlsBundles
private ReflectionUtil reflectionUtil
public NlsResourceBundleLocatorImpl()
protected List<ResourceBundle> getNlsBundles()
List
of ResourceBundle
s.ResourceBundle
s.findBundles()
public void setNlsBundles(List<ResourceBundle> nlsBundles)
nlsBundles
- is the nlsBundles to setpublic ReflectionUtil getReflectionUtil()
ReflectionUtil
.ReflectionUtil
.@Inject public void setReflectionUtil(ReflectionUtil reflectionUtil)
reflectionUtil
- is the reflectionUtil to setprotected void doInitialize()
AbstractComponent
initialization
. It is called when AbstractComponent.initialize()
is
invoked for the first time. super.
AbstractComponent.doInitialize()
.doInitialize
in class AbstractLoggableComponent
public List<ResourceBundle> findBundles()
NlsResourceBundleLocator
ResourceBundle
for Locale.ROOT
via NlsTemplateResolver.CLASSPATH_NLS_BUNDLE
.findBundles
in interface NlsResourceBundleLocator
List
of ResourceBundle
s.private List<ResourceBundle> loadNlsBundles()
private ResourceBundle loadNlsBundle(org.slf4j.Logger logger, DataResource dataResource, String line)
Copyright © 2001–2016 mmm-Team. All rights reserved.