From e3ec404a47be5ac03493481301e45cebadb25f22 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 9 Nov 2016 22:16:59 +0300 Subject: components: remove @Component annotation to prevent double initialization --- juick-crosspost/src/main/java/com/juick/components/Crosspost.java | 1 - .../src/main/java/com/juick/components/Notifications.java | 1 - juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java | 1 - juick-xmpp/src/main/java/com/juick/components/XMPPServer.java | 1 - 4 files changed, 4 deletions(-) diff --git a/juick-crosspost/src/main/java/com/juick/components/Crosspost.java b/juick-crosspost/src/main/java/com/juick/components/Crosspost.java index 55d1370d..c0f11959 100644 --- a/juick-crosspost/src/main/java/com/juick/components/Crosspost.java +++ b/juick-crosspost/src/main/java/com/juick/components/Crosspost.java @@ -49,7 +49,6 @@ import java.util.logging.Logger; * * @author Ugnich Anton */ -@Component public class Crosspost implements DisposableBean, Stream.StreamListener, Message.MessageListener { private static Logger logger = Logger.getLogger(Crosspost.class.getName()); 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 8cf5d5da..7bb81530 100644 --- a/juick-notifications/src/main/java/com/juick/components/Notifications.java +++ b/juick-notifications/src/main/java/com/juick/components/Notifications.java @@ -62,7 +62,6 @@ import java.util.logging.Logger; * * @author Ugnich Anton */ -@Component public class Notifications implements DisposableBean, Stream.StreamListener, MessageListener { private static Logger logger = Logger.getLogger(Notifications.class.getName()); diff --git a/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java b/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java index e87b96a5..4a9373b3 100644 --- a/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java +++ b/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java @@ -24,7 +24,6 @@ import java.util.logging.Logger; /** * Created by vitalyster on 28.06.2016. */ -@Component public class WebsocketComponent extends TextWebSocketHandler { @Inject diff --git a/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java b/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java index a091d477..96023873 100644 --- a/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java +++ b/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java @@ -34,7 +34,6 @@ import java.util.logging.Logger; * * @author ugnich */ -@Component public class XMPPServer implements DisposableBean, Stream.StreamListener, Message.MessageListener, Iq.IqListener, Presence.PresenceListener { -- cgit v1.2.3