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

java.lang.Object
  extended by net.sf.mmm.util.component.base.AbstractComponent
      extended by net.sf.mmm.util.nls.impl.NlsMessageFormatterFactoryImpl
All Implemented Interfaces:
NlsMessageFormatterFactory

@Singleton
@Named
public class NlsMessageFormatterFactoryImpl
extends AbstractComponent
implements NlsMessageFormatterFactory

This is the implementation of the NlsMessageFormatterFactory.

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

Field Summary
private  NlsDependencies dependencies
           
 
Constructor Summary
NlsMessageFormatterFactoryImpl()
          The constructor.
 
Method Summary
 NlsMessageFormatter create(String message)
          This method creates a new NlsMessageFormatter for the given message.
protected  void doInitialize()
          This method performs the actual initialization.
protected  NlsDependencies getDependencies()
           
 void setDependencies(NlsDependencies nlsDependencies)
           
 
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

dependencies

private NlsDependencies dependencies
See Also:
getDependencies()
Constructor Detail

NlsMessageFormatterFactoryImpl

public NlsMessageFormatterFactoryImpl()
The constructor.

Method Detail

create

public NlsMessageFormatter create(String message)
This method creates a new NlsMessageFormatter for the given message.
The format of the message is described in NlsMessage.

Specified by:
create in interface NlsMessageFormatterFactory
Parameters:
message - is the template for the message where potential arguments will be filled in.
Returns:
the NlsMessageFormatter for the given message.

getDependencies

protected NlsDependencies getDependencies()
Returns:
the NlsDependencies.

setDependencies

@Inject
public void setDependencies(NlsDependencies nlsDependencies)
Parameters:
nlsDependencies - is the nlsDependencies to set

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 AbstractComponent


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