diff options
author | Vitaly Takmazov | 2017-11-13 16:21:40 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-11-13 16:23:13 +0300 |
commit | 7f3df0421437e76a3b94658d3c6f9fc39b7843ca (patch) | |
tree | 64c430c66df910918b3fa82fafd7b4bacb91748f /juick-notifications/src/main/java/com/juick | |
parent | fc77902b14c16e7c911a0f2fe6a73e69b252f699 (diff) |
notifications: initialize top
Diffstat (limited to 'juick-notifications/src/main/java/com/juick')
-rw-r--r-- | juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java | 11 |
1 files changed, 11 insertions, 0 deletions
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()); + } } |