diff options
author | Vitaly Takmazov | 2022-12-08 10:37:23 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-08 10:37:23 +0300 |
commit | ccdb57fa3932785811faf9dd42d5998e4f1ea14b (patch) | |
tree | ceb012324e7374e758e9fbfab8836ba3ae1164b9 /src/main/java/com/juick/config/XMPPConfig.java | |
parent | cfc787394a506459c71b4a124149e5d6de7690a8 (diff) |
Spring beans should not be public
Diffstat (limited to 'src/main/java/com/juick/config/XMPPConfig.java')
-rw-r--r-- | src/main/java/com/juick/config/XMPPConfig.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/juick/config/XMPPConfig.java b/src/main/java/com/juick/config/XMPPConfig.java index 98623f29..cde4c0dc 100644 --- a/src/main/java/com/juick/config/XMPPConfig.java +++ b/src/main/java/com/juick/config/XMPPConfig.java @@ -29,13 +29,14 @@ import org.springframework.format.support.DefaultFormattingConversionService; @ConditionalOnProperty("xmppbot_jid") public class XMPPConfig { @Bean - public static ConversionService conversionService() { + static ConversionService conversionService() { DefaultFormattingConversionService cs = new DefaultFormattingConversionService(); cs.addConverter(new JidConverter()); return cs; } + @Bean - public XMPPManager xmppConnection() { + XMPPManager xmppConnection() { return new XMPPManager(); } } |