net.sf.mmm.util.nls.impl
Class ConfiguredNlsFormatterMap

java.lang.Object
  extended by net.sf.mmm.util.component.base.AbstractComponent
      extended by net.sf.mmm.util.component.base.AbstractLoggableComponent
          extended by net.sf.mmm.util.nls.base.NlsFormatterMap
              extended by net.sf.mmm.util.nls.impl.ConfiguredNlsFormatterMap

@Singleton
@Named
public class ConfiguredNlsFormatterMap
extends NlsFormatterMap

This is a sub-class of NlsFormatterMap as a ready to use configurable component. It contains all the defaults but can also be configured for your custom needs.

Since:
2.0.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Field Summary
private  List<? extends NlsFormatterPlugin<?>> formatters
           
 
Constructor Summary
ConfiguredNlsFormatterMap()
          The constructor.
 
Method Summary
protected  void doInitialize()
          This method performs the actual initialization.
 void setFormatters(List<? extends NlsFormatterPlugin<?>> formatters)
          This method allows to inject the formatters to register.
 
Methods inherited from class net.sf.mmm.util.nls.base.NlsFormatterMap
getFormatter, registerFormatter, registerFormatter
 
Methods inherited from class net.sf.mmm.util.component.base.AbstractLoggableComponent
getLogger, setLogger
 
Methods inherited from class net.sf.mmm.util.component.base.AbstractComponent
doInitialized, getInitializationState, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

formatters

private List<? extends NlsFormatterPlugin<?>> formatters
See Also:
setFormatters(List)
Constructor Detail

ConfiguredNlsFormatterMap

public ConfiguredNlsFormatterMap()
The constructor.

Method Detail

doInitialize

protected void doInitialize()
This method performs the actual initialization. It is called when AbstractComponent.initialize() is invoked for the first time.
ATTENTION:
When you override this method from a sub-class you need to do a super.AbstractComponent.doInitialize().

Overrides:
doInitialize in class AbstractLoggableComponent

setFormatters

@Inject
public void setFormatters(List<? extends NlsFormatterPlugin<?>> formatters)
This method allows to inject the formatters to register.

Parameters:
formatters - is the List of formatters to set.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.