aboutsummaryrefslogtreecommitdiff
path: root/juick-notifications/src/main/java/com/juick/components
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-26 20:15:05 +0300
committerGravatar Vitaly Takmazov2018-03-26 20:15:05 +0300
commitdfc4a12e46a3707fa458bef448ec2f9e937832f2 (patch)
tree24e182859fc2f78357bed226456c849ac356ff90 /juick-notifications/src/main/java/com/juick/components
parentf0e054736583ff57cd21b6296c9b7105d6187e72 (diff)
notifications: Notifications is Component
Diffstat (limited to 'juick-notifications/src/main/java/com/juick/components')
-rw-r--r--juick-notifications/src/main/java/com/juick/components/Notifications.java2
1 files changed, 2 insertions, 0 deletions
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<MessageEvent> {
private static Logger logger = LoggerFactory.getLogger(Notifications.class);