Class TwitterGeoFunctionConfiguration

java.lang.Object
org.springframework.cloud.fn.twitter.geo.TwitterGeoFunctionConfiguration

@Configuration @EnableConfigurationProperties(TwitterGeoFunctionProperties.class) @Import(TwitterConnectionConfiguration.class) public class TwitterGeoFunctionConfiguration extends Object
Author:
Christian Tzolov
  • Constructor Details

    • TwitterGeoFunctionConfiguration

      public TwitterGeoFunctionConfiguration()
  • Method Details

    • messageToGeoQueryFunction

      @Bean public Function<Message<?>,twitter4j.GeoQuery> messageToGeoQueryFunction(TwitterGeoFunctionProperties geoProperties)
    • twitterSearchPlacesFunction

      @Bean @ConditionalOnProperty(name="twitter.geo.search.type", havingValue="search", matchIfMissing=true) public Function<twitter4j.GeoQuery,List<twitter4j.Place>> twitterSearchPlacesFunction(twitter4j.Twitter twitter)
    • twitterReverseGeocodeFunction

      @Bean @ConditionalOnProperty(name="twitter.geo.search.type", havingValue="reverse") public Function<twitter4j.GeoQuery,List<twitter4j.Place>> twitterReverseGeocodeFunction(twitter4j.Twitter twitter)
    • twitterGeoFunction

      @Bean public Function<Message<?>,Message<byte[]>> twitterGeoFunction(Function<Message<?>,twitter4j.GeoQuery> toGeoQuery, Function<twitter4j.GeoQuery,List<twitter4j.Place>> places, Function<Object,Message<byte[]>> managedJson)