Search in sources :

Example 1 with TwitterSearchOutboundGateway

use of org.springframework.integration.twitter.outbound.TwitterSearchOutboundGateway in project spring-integration-samples by spring-projects.

the class Application method twitterGate.

@Bean
@ServiceActivator(inputChannel = "searchChannel")
public TwitterSearchOutboundGateway twitterGate() {
    TwitterSearchOutboundGateway gateway = new TwitterSearchOutboundGateway(twitter());
    gateway.setOutputChannel(toJsonChannel());
    return gateway;
}
Also used : TwitterSearchOutboundGateway(org.springframework.integration.twitter.outbound.TwitterSearchOutboundGateway) ServiceActivator(org.springframework.integration.annotation.ServiceActivator) Bean(org.springframework.context.annotation.Bean)

Aggregations

Bean (org.springframework.context.annotation.Bean)1 ServiceActivator (org.springframework.integration.annotation.ServiceActivator)1 TwitterSearchOutboundGateway (org.springframework.integration.twitter.outbound.TwitterSearchOutboundGateway)1