@Beta public class JsonEventSerializer extends Object
| Constructor and Description |
|---|
JsonEventSerializer(Class<?>... eventClasses) |
JsonEventSerializer(Set<EventTypeMetadata<?>> eventTypes) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
serialize(T event,
com.fasterxml.jackson.core.JsonGenerator jsonGenerator) |
@Inject public JsonEventSerializer(Set<EventTypeMetadata<?>> eventTypes)
public JsonEventSerializer(Class<?>... eventClasses)
public <T> void serialize(T event,
com.fasterxml.jackson.core.JsonGenerator jsonGenerator)
throws IOException
IOExceptionCopyright © 2010–2024 Airlift. All rights reserved.