simple-message
A library to simple-message custom, fatal error, error, information, success and warning.
Install
Available in the Maven Central repository.
Add a dependency to com.github.thiagogarbazza:simple-message
in your project.
Example using maven:
<dependency>
<groupId>com.github.thiagogarbazza</groupId>
<artifactId>simple-message</artifactId>
<version>1.0.0</version>
</dependency>
Usage samples
Simple usage:
public SimpleMessage example() {
return new SimpleMessage(SimpleMessageType.INFORMATION, "key.a", "Message to key a");
}
Simple usage using java.text.MessageFormat
:
public SimpleMessage exampleUsingMessageFormat() {
return new SimpleMessage(SimpleMessageType.INFORMATION, "key.a", "Message to key {0} by {1}", "a", "Thiago");
}