From dfc4a12e46a3707fa458bef448ec2f9e937832f2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 26 Mar 2018 20:15:05 +0300 Subject: notifications: Notifications is Component --- .../src/main/java/com/juick/components/Notifications.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'juick-notifications/src/main/java/com') diff --git a/juick-notifications/src/main/java/com/juick/components/Notifications.java b/juick-notifications/src/main/java/com/juick/components/Notifications.java index 1513428b..a43d985c 100644 --- a/juick-notifications/src/main/java/com/juick/components/Notifications.java +++ b/juick-notifications/src/main/java/com/juick/components/Notifications.java @@ -36,6 +36,7 @@ import org.springframework.beans.factory.annotation.Value; import org.springframework.context.ApplicationListener; import org.springframework.core.ParameterizedTypeReference; import org.springframework.http.HttpMethod; +import org.springframework.stereotype.Component; import org.springframework.web.client.RestTemplate; import javax.annotation.Nonnull; @@ -50,6 +51,7 @@ import java.util.stream.Collectors; /** * @author Ugnich Anton */ +@Component public class Notifications implements NotificationClientListener, AutoCloseable, ApplicationListener { private static Logger logger = LoggerFactory.getLogger(Notifications.class); -- cgit v1.2.3