com.acsinet_solutions.util.text
Class NoopMessageFactory

java.lang.Object
  extended by com.acsinet_solutions.util.text.NoopMessageFactory
All Implemented Interfaces:
MessageFactory

public final class NoopMessageFactory
extends java.lang.Object
implements MessageFactory

NOOP message factory for simple and test implementations. Writes down the key to the output.

Author:
Santiago Arriaga

Field Summary
static MessageFactory INSTANCE
          Convenience reusable shared instance.
 
Constructor Summary
NoopMessageFactory()
           
 
Method Summary
 java.lang.String getMessage(java.lang.String key, java.lang.Object... args)
          Get a message associated with the given key and optional arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final MessageFactory INSTANCE
Convenience reusable shared instance.

Constructor Detail

NoopMessageFactory

public NoopMessageFactory()
Method Detail

getMessage

public final java.lang.String getMessage(java.lang.String key,
                                         java.lang.Object... args)
Description copied from interface: MessageFactory
Get a message associated with the given key and optional arguments.

Specified by:
getMessage in interface MessageFactory