Annotation Interface BridgeTo
@Target({METHOD,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Documented
@Repeatable(BridgeToRepeatable.class)
public @interface BridgeTo
Messaging Annotation to mark a 
Bean
 method for a MessageChannel to produce a
 BridgeHandler and Consumer Endpoint.
 
 The MessageChannel Bean
 marked with this annotation is used as the inputChannel for the
 AbstractEndpoint
 and determines the type of endpoint -
 EventDrivenConsumer or
 PollingConsumer.
 
 The value() of this annotation is the outputChannel for the
 BridgeHandler.
 If it isn't present, the BridgeHandler
 sends the message to the reply-channel in its message headers, if present.
 If no output channel is provided and no reply-channel exists, an exception is thrown.
- Since:
- 4.0
- Author:
- Artem Bilan, Chris Bono
- 
Optional Element SummaryOptional Elements
- 
Element Details- 
valueString value- Returns:
- the outbound channel name to send the message to for the
 BridgeHandlerreply. Optional: when omitted the message is sent to thereply-channelin its headers (if present - an exception is thrown otherwise).
 - Default:
- ""
 
- 
autoStartupString autoStartup- Default:
- "true"
 
- 
phaseString phaseSpecify aSmartLifecyclephaseoption. DefaultsInteger.MAX_VALUE / 2forPollingConsumerandInteger.MIN_VALUEforEventDrivenConsumer. Can be specified as 'property placeholder', e.g.${foo.phase}.- Returns:
- the SmartLifecyclephase.
 - Default:
- ""
 
- 
pollerPoller poller- Returns:
- the Polleroptions for a polled endpoint (PollerMetadata). Mutually exclusive withreactive().
 - Default:
- @org.springframework.integration.annotation.Poller("\n\t\t\n\t\t\n\ue000\ue001\ue002\n\t\t\t\t\n")
 
- 
reactiveReactive reactive- Default:
- @org.springframework.integration.annotation.Reactive("\n\t\t\n\t\t\n\ue000\ue001\ue002\n\t\t\t\t\n")
 
 
-