public abstract class AbstractCommonHandlerImpl extends AbstractConfigurableMasterHandlerImpl
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractCommonHandlerImpl.AbstractConfiguration |
eventAttributes| Constructor and Description |
|---|
AbstractCommonHandlerImpl(java.lang.String configurationId,
|
| Modifier and Type | Method and Description |
|---|---|
protected Event.EventBuilder |
createEventBuilder()
Create a pre-filled event builder
|
void |
dataUpdate(java.util.Map<java.lang.String,java.lang.Object> context,
DataItemValue.Builder builder)
Called when data changed or the handler chain changed.
|
protected void |
injectEventAttributes(Event.EventBuilder builder) |
protected abstract void |
processDataUpdate(java.util.Map<java.lang.String,java.lang.Object> context,
DataItemValue.Builder builder) |
getPrefixed, handleUpdate, processWrite, updateConfiguration, updateConfigurationaddItem, createTrackers, dispose, getMasterItems, removeItem, reprocess, updatepublic AbstractCommonHandlerImpl(java.lang.String configurationId,
poolTracker,
int priority,
caTracker,
java.lang.String prefix,
java.lang.String factoryId)
protected abstract void processDataUpdate(java.util.Map<java.lang.String,java.lang.Object> context,
DataItemValue.Builder builder)
throws java.lang.Exception
java.lang.Exceptionprotected Event.EventBuilder createEventBuilder()
protected void injectEventAttributes(Event.EventBuilder builder)
public void dataUpdate(java.util.Map<java.lang.String,java.lang.Object> context,
DataItemValue.Builder builder)
MasterItemHandlerThe call gets a context object provided which each handler can use to store context information of one calculation run. Each calculation run gets a fresh new context. The context is intended to pass data from one handler to the next.
Although the value parameter is a mutable type, the handler may only make changes inside the dataUpdate method.
dataUpdate in interface MasterItemHandlerdataUpdate in class AbstractMasterHandlerImplcontext - the context objectbuilder - the changed value
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0