@Setup(mode=SINGLETON, priority=2000) public class LogEntryEnricher extends AbstractJsonEnricher<LogEntry>
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
ENTITY_ENRICHER_NAME
ctx, registry
Constructor and Description |
---|
LogEntryEnricher() |
Modifier and Type | Method and Description |
---|---|
protected String |
getPrincipalName(LogEntry logEntry) |
void |
write(org.codehaus.jackson.JsonGenerator jsonGenerator,
LogEntry logEntry)
When implementing this method, the provided
JsonGenerator expect you write a field name and a field value
(or many). |
accept, write
getGenerator, write, writeEntity, writeEntity, writeEntityField
public static final String NAME
public LogEntryEnricher()
public void write(org.codehaus.jackson.JsonGenerator jsonGenerator, LogEntry logEntry) throws IOException
AbstractJsonEnricher
JsonGenerator
expect you write a field name and a field value
(or many).write
in class AbstractJsonEnricher<LogEntry>
jsonGenerator
- The JsonGenerator
to use.logEntry
- The enriched entity.IOException
protected String getPrincipalName(LogEntry logEntry)
Copyright © 2015 Nuxeo SA. All rights reserved.