de.otto.synapse.translator.TextDecoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of synapse-core Show documentation
Show all versions of synapse-core Show documentation
A library used at otto.de to implement Spring Boot based event-sourcing microservices.
The newest version!
package de.otto.synapse.translator;
import de.otto.synapse.message.Header;
import de.otto.synapse.message.Key;
import de.otto.synapse.message.TextMessage;
import org.slf4j.Logger;
import static org.slf4j.LoggerFactory.getLogger;
public final class TextDecoder extends AbstractTextDecoder {
private static final Logger LOG = getLogger(TextDecoder.class);
@Override
public TextMessage apply(final String s) {
return decode(Key.of(), Header.of(), s);
}
}