Class RecConfig

java.lang.Object
org.localify.common.config.beans.RecConfig

@Configuration public class RecConfig extends Object
Configuration for recommender-related beans.
  • Constructor Details

    • RecConfig

      public RecConfig()
  • Method Details

    • randomRecommender

      @Bean @ConditionalOnProperty(prefix="localify.rec-sys", name="impl", havingValue="random", matchIfMissing=true) public Recommender randomRecommender()
      Creates a random recommender bean, which is used when no other recommender is specified.
      Returns:
      The random recommender.
    • rpcRecommender

      @Bean @ConditionalOnProperty(prefix="localify.rec-sys", name="impl", havingValue="rpc") public Recommender rpcRecommender(LocalifyProperties localifyProperties)
      Creates an RPC recommender bean.
      Parameters:
      localifyProperties - The application properties.
      Returns:
      The RPC recommender.