From 7f3df0421437e76a3b94658d3c6f9fc39b7843ca Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 13 Nov 2017 16:21:40 +0300 Subject: notifications: initialize top --- .../configuration/NotificationsAppConfiguration.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'juick-notifications/src/main/java/com/juick') diff --git a/juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java b/juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java index 19d56d59..f7616fd1 100644 --- a/juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java +++ b/juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java @@ -2,7 +2,10 @@ package com.juick.components.configuration; import com.juick.components.CleanUp; import com.juick.components.Notifications; +import com.juick.components.Top; +import com.juick.components.service.ApiMessagesService; import com.juick.server.configuration.BaseWebConfiguration; +import com.juick.service.MessagesService; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.*; import org.springframework.http.client.ClientHttpRequestInterceptor; @@ -50,4 +53,12 @@ public class NotificationsAppConfiguration extends BaseWebConfiguration { public CleanUp cleanUp() { return new CleanUp(); } + @Bean + public Top top() { + return new Top(); + } + @Bean + public MessagesService messagesService() { + return new ApiMessagesService(rest()); + } } -- cgit v1.2.3