org.springframework.integration.annotation
Annotation Type Router


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Inherited
@Documented
@Handler
public @interface Router

Indicates that a method is capable of resolving to a channel or channel name based on a message, message payload, message attribute, or message property.

Author:
Mark Fisher

Optional Element Summary
 java.lang.String attribute
          String value representing the name of the attribute that should be passed into the router method.
 java.lang.String property
          String value representing the name of the property that should be passed into the router method.
 

property

public abstract java.lang.String property
String value representing the name of the property that should be passed into the router method. This and 'attribute' should not both be provided.

Default:
""

attribute

public abstract java.lang.String attribute
String value representing the name of the attribute that should be passed into the router method. This and 'property' should not both be provided.

Default:
""