public class BindingContextUtils extends Object
BindingContext
s.Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTES |
static String |
AUTHENTICATION |
static String |
CORRELATION_ID |
static String |
DATA_TYPE |
static String |
ERROR |
static String |
FLOW |
static String |
ITEM_SEQUENCE_INFO |
static String |
MESSAGE |
static BindingContext |
NULL_BINDING_CONTEXT |
static String |
PAYLOAD |
static String |
VARS |
Modifier and Type | Method and Description |
---|---|
static BindingContext |
addEventBindings(Event event,
BindingContext baseContext)
Creates a new
BindingContext that contains the bindings from baseContext and the bindings that belong to the
given event . |
static BindingContext.Builder |
addEventBuindingsToBuilder(Event event,
BindingContext baseContext)
Creates a new
BindingContext.Builder that contains the bindings from baseContext and the bindings that belong
to the given event . |
static BindingContext |
getTargetBindingContext(Message message)
Creates a new
BindingContext that only contains the restricted bindings to be used for evaluating the target
expression. |
public static final String MESSAGE
public static final String PAYLOAD
public static final String DATA_TYPE
public static final String ATTRIBUTES
public static final String ERROR
public static final String CORRELATION_ID
public static final String VARS
public static final String AUTHENTICATION
public static final String FLOW
public static final String ITEM_SEQUENCE_INFO
public static final BindingContext NULL_BINDING_CONTEXT
public static BindingContext addEventBindings(Event event, BindingContext baseContext)
BindingContext
that contains the bindings from baseContext
and the bindings that belong to the
given event
.event
- the event to build the new bindings for. Not-null.baseContext
- the context whose copy the event bindings will be added to. Not-null.BindingContext
that contains the bindings from baseContext
and the bindings that belong to the
given event
.public static BindingContext.Builder addEventBuindingsToBuilder(Event event, BindingContext baseContext)
BindingContext.Builder
that contains the bindings from baseContext
and the bindings that belong
to the given event
.event
- the event to build the new bindings for. Not-null.baseContext
- the context whose copy the event bindings will be added to. Not-null.BindingContext.Builder
that contains the bindings from baseContext
and the bindings that belong
to the given event
.public static BindingContext getTargetBindingContext(Message message)
BindingContext
that only contains the restricted bindings to be used for evaluating the target
expression.message
- the message to build the bindings for. Not-null.BindingContext
that contains the bindings from message
.Copyright © 2018. All rights reserved.