diff options
author | 2018-09-25 12:49:57 +0300 | |
---|---|---|
committer | 2018-09-25 12:49:57 +0300 | |
commit | 15753b2ebdac2ab49cf5682c417851a0653e136e (patch) | |
tree | 81efc43348a820a1c647779f78264bce10103b59 /juick-notifications/src/main/java/com/juick/components/configuration/MPNSConfiguration.java | |
parent | ae76024011a8442ae7eab953e0b97e9fe2c7c201 (diff) |
notifications server refactoring
Diffstat (limited to 'juick-notifications/src/main/java/com/juick/components/configuration/MPNSConfiguration.java')
-rw-r--r-- | juick-notifications/src/main/java/com/juick/components/configuration/MPNSConfiguration.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/juick-notifications/src/main/java/com/juick/components/configuration/MPNSConfiguration.java b/juick-notifications/src/main/java/com/juick/components/configuration/MPNSConfiguration.java index f849b159..4235486c 100644 --- a/juick-notifications/src/main/java/com/juick/components/configuration/MPNSConfiguration.java +++ b/juick-notifications/src/main/java/com/juick/components/configuration/MPNSConfiguration.java @@ -1,6 +1,7 @@ package com.juick.components.configuration; -import com.juick.components.MPNSClient; +import com.juick.components.MPNSManager; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -8,9 +9,10 @@ import org.springframework.context.annotation.Configuration; * Created by vital on 29.03.2017. */ @Configuration +@ConditionalOnProperty(name = "wns_application_sip") public class MPNSConfiguration { @Bean - public MPNSClient mpnsClient() { - return new MPNSClient(); + public MPNSManager mpnsClient() { + return new MPNSManager(); } } |