net.sf.mmm.util.nls.base
Class NlsMessageFactoryImpl
java.lang.Object
net.sf.mmm.util.component.base.AbstractComponent
net.sf.mmm.util.component.base.AbstractLoggableComponent
net.sf.mmm.util.nls.base.AbstractNlsMessageFactory
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)
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nlsDependencies
private NlsDependencies nlsDependencies
- See Also:
getNlsDependencies()
NlsMessageFactoryImpl
public NlsMessageFactoryImpl()
- The constructor.
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.