T
- the return typepublic abstract class OutputPlugin<T> extends OutputPluginArgument<Object,T>
Constructor and Description |
---|
OutputPlugin(Context context,
String id)
creates a new output-plugin with a new id
|
Modifier and Type | Method and Description |
---|---|
Object |
getArgument()
returns the argument for the OutputExtensions
|
com.google.common.reflect.TypeToken<Object> |
getArgumentType()
returns the Type of the argument for the OutputExtensions, or null if none
|
abstract void |
renderFinalOutput(List<T> data,
EventModel eventModel)
method that uses the data from the OutputExtensions to generate a final output that will then be rendered.
|
addToEventList, blockingQueueHandling, getEventBlockingQueue, getOutputExtensionList, getReceivingType, getTimeoutLimit, handleFutures, isDone, isRunning, outputExtensionAdded, outputExtensionRemoved, run, stop, terminate
getContext, getID
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getID, isOwner
submit, submit, submit, submitRun, timeOut, timeOut
debug, debug, error, error, getContext
debug, debug, error, error, fatal, fatal, warn, warn
exceptionThrown
public OutputPlugin(Context context, String id)
context
- contextid
- the id of the new output-pluginpublic com.google.common.reflect.TypeToken<Object> getArgumentType()
getArgumentType
in interface OutputPluginModel<Object,T>
getArgumentType
in class OutputPluginArgument<Object,T>
public Object getArgument()
getArgument
in class OutputPluginArgument<Object,T>
public abstract void renderFinalOutput(List<T> data, EventModel eventModel)
renderFinalOutput
in class OutputPluginArgument<Object,T>
data
- the data generatedeventModel
- the Event which caused the whole thingCopyright © 2016. All rights reserved.