Spring Integration

org.springframework.integration.aop
Annotation Type ExpressionBinding


@Target(value={METHOD,TYPE})
@Retention(value=RUNTIME)
public @interface ExpressionBinding

Annotation that provides the variable names to use when constructing the evaluation context for a MessagePublishingInterceptor.

Since:
2.0
Author:
Mark Fisher

Optional Element Summary
 String argumentMapVariableName
          Name of the variable in the context that refers to the Map of arguments.
 String argumentVariableNames
          Names of the arguments as a comma-separated list.
 String exceptionVariableName
          Name of the variable in the context that refers to any exception thrown by the method invocation that is being intercepted.
 String methodNameVariableName
          Name of the variable in the context that refers to the method name.
 String returnValueVariableName
          Name of the variable in the context that refers to the return value, if any.
 

methodNameVariableName

public abstract String methodNameVariableName
Name of the variable in the context that refers to the method name.

The default is "method".

Default:
"method"

argumentVariableNames

public abstract String argumentVariableNames
Names of the arguments as a comma-separated list. If not provided, the names will be discovered automatically if enabled by the compiler settings. These names will be used as the keys in the argument Map.

Default:
""

argumentMapVariableName

public abstract String argumentMapVariableName
Name of the variable in the context that refers to the Map of arguments.

The default is "args".

Default:
"args"

returnValueVariableName

public abstract String returnValueVariableName
Name of the variable in the context that refers to the return value, if any.

The default is "return".

Default:
"return"

exceptionVariableName

public abstract String exceptionVariableName
Name of the variable in the context that refers to any exception thrown by the method invocation that is being intercepted.

The default is "exception".

Default:
"exception"

Spring Integration

Copyright © 2010. All Rights Reserved.