public class GlobalCustomFieldsJsonProvider<Event extends DeferredProcessingAware> extends AbstractJsonProvider<Event> implements JsonFactoryAware
context
Constructor and Description |
---|
GlobalCustomFieldsJsonProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getCustomFields() |
JsonNode |
getCustomFieldsNode() |
void |
setCustomFields(String customFields) |
void |
setCustomFieldsNode(JsonNode customFields) |
void |
setJsonFactory(JsonFactory jsonFactory) |
void |
start() |
void |
writeTo(JsonGenerator generator,
Event event)
Writes information about the event,
to the given generator.
|
isStarted, prepareForDeferredProcessing, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public void writeTo(JsonGenerator generator, Event event) throws IOException
JsonProvider
writeTo
in interface JsonProvider<Event extends DeferredProcessingAware>
IOException
public void start()
start
in interface LifeCycle
start
in class AbstractJsonProvider<Event extends DeferredProcessingAware>
public void setCustomFields(String customFields)
public String getCustomFields()
public JsonNode getCustomFieldsNode()
public void setCustomFieldsNode(JsonNode customFields)
public void setJsonFactory(JsonFactory jsonFactory)
setJsonFactory
in interface JsonFactoryAware
Copyright © 2019. All rights reserved.