Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thiagogarbazza/simple-message
A library to simple-message custom, fatal error, error, information, success and warning.
https://github.com/thiagogarbazza/simple-message
java message text types
Last synced: about 6 hours ago
JSON representation
A library to simple-message custom, fatal error, error, information, success and warning.
- Host: GitHub
- URL: https://github.com/thiagogarbazza/simple-message
- Owner: thiagogarbazza
- License: mit
- Created: 2017-11-26T15:50:50.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-13T04:39:34.000Z (about 4 years ago)
- Last Synced: 2024-04-16T07:05:45.368Z (7 months ago)
- Topics: java, message, text, types
- Language: Java
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-message
A library to simple-message custom, fatal error, error, information, success and warning.[![Build Status](https://travis-ci.org/thiagogarbazza/simple-message.svg?branch=master)](https://travis-ci.org/thiagogarbazza/simple-message)
[![Coverage Status](https://sonarcloud.io/api/project_badges/measure?project=com.github.thiagogarbazza:simple-message&metric=alert_status)](https://sonarcloud.io/dashboard?id=com.github.thiagogarbazza:simple-message)
[![Coverage Status](https://sonarcloud.io/api/project_badges/measure?project=com.github.thiagogarbazza:simple-message&metric=coverage)](https://sonarcloud.io/dashboard?id=com.github.thiagogarbazza:simple-message)## Install
Available in the [Maven Central repository].
Add a dependency to `com.github.thiagogarbazza:simple-message` in your project.
Example using maven:
```xmlcom.github.thiagogarbazza
simple-message
1.0.0```
## Usage samples
Simple usage:
```java
public SimpleMessage example() {
return new SimpleMessage(SimpleMessageType.INFORMATION, "key.a", "Message to key a");
}
```Simple usage using `java.text.MessageFormat`:
```java
public SimpleMessage exampleUsingMessageFormat() {
return new SimpleMessage(SimpleMessageType.INFORMATION, "key.a", "Message to key {0} by {1}", "a", "Thiago");
}
```[Maven Central repository]: http://mvnrepository.com/artifact/com.github.thiagogarbazza/simple-message