net.sf.mmm.util.nls.base
Class NlsMessageFactoryImpl

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.AbstractNlsMessageFactory
              extended by net.sf.mmm.util.nls.base.NlsMessageFactoryImpl
All Implemented Interfaces:
NlsMessageFactory

@Named
@Singleton
public class NlsMessageFactoryImpl
extends AbstractNlsMessageFactory

This is the implementation of the NlsMessageFactory interface.

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

Field Summary
private  NlsDependencies nlsDependencies
           
 
Constructor Summary
NlsMessageFactoryImpl()
          The constructor.
 
Method Summary
 NlsMessage create(NlsTemplate template, Map<String,Object> messageArguments)
          This method creates a new instance of NlsMessage from the given arguments.
 NlsMessage create(String internationalizedMessage, Map<String,Object> messageArguments)
          This method creates a new instance of NlsMessage from the given arguments.
protected  void doInitialize()
          This method performs the actual initialization.
protected  void doInitialized()
          This method is invoked at the end of the actual initialization.
 NlsDependencies getNlsDependencies()
           
 void setNlsDependencies(NlsDependencies nlsDependencies)
           
 
Methods inherited from class net.sf.mmm.util.nls.base.AbstractNlsMessageFactory
create, create, create, create, create, create, create, create, create, create, create, create
 
Methods inherited from class net.sf.mmm.util.component.base.AbstractLoggableComponent
getLogger, setLogger
 
Methods inherited from class net.sf.mmm.util.component.base.AbstractComponent
getInitializationState, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nlsDependencies

private NlsDependencies nlsDependencies
See Also:
getNlsDependencies()
Constructor Detail

NlsMessageFactoryImpl

public NlsMessageFactoryImpl()
The constructor.

Method Detail

create

public NlsMessage create(NlsTemplate template,
                         Map<String,Object> messageArguments)
This method creates a new instance of NlsMessage from the given arguments.

Parameters:
template - is the NlsTemplate for the raw message.
messageArguments - are the arguments filled into the message after nationalization.
Returns:
the new NlsMessage instance.

create

public NlsMessage create(String internationalizedMessage,
                         Map<String,Object> messageArguments)
This method creates a new instance of NlsMessage from the given arguments.

Parameters:
internationalizedMessage - is the internationalized message.
messageArguments - are the arguments filled into the message after nationalization.
Returns:
the new NlsMessage instance.

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

doInitialized

protected void doInitialized()
This method is invoked at the end of the actual initialization. It is called when AbstractComponent.initialize() is invoked for the first time after AbstractComponent.doInitialize() is completed and initialization-state has changed to initialized.
ATTENTION:
When you override this method from a sub-class you need to do a super.AbstractComponent.doInitialized().

Overrides:
doInitialized in class AbstractComponent

getNlsDependencies

public NlsDependencies getNlsDependencies()
Returns:
the NlsDependencies.

setNlsDependencies

@Inject
public void setNlsDependencies(NlsDependencies nlsDependencies)
Parameters:
nlsDependencies - are the NlsDependencies to set.


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