diff options
author | 2016-11-12 01:34:07 +0700 | |
---|---|---|
committer | 2016-11-12 11:14:56 +0300 | |
commit | 194a9a763c6b11d207e682b2f93de94475c473b4 (patch) | |
tree | 196317662017b716066eadfa413ecbdc7532c52d /juick-xmpp/src/main/java/com/juick/components/configuration/XMPPInitializer.java | |
parent | 7d86347a351aa5263c19cd03aa0bda4650c8bfca (diff) |
extracted application configuration from Mvc configuration with application specific beans;
extracted bean initialization from constructor;
force using properties;
Diffstat (limited to 'juick-xmpp/src/main/java/com/juick/components/configuration/XMPPInitializer.java')
-rw-r--r-- | juick-xmpp/src/main/java/com/juick/components/configuration/XMPPInitializer.java | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/configuration/XMPPInitializer.java b/juick-xmpp/src/main/java/com/juick/components/configuration/XMPPInitializer.java deleted file mode 100644 index 3942f889..00000000 --- a/juick-xmpp/src/main/java/com/juick/components/configuration/XMPPInitializer.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.juick.components.configuration; - -import com.juick.configuration.DataConfiguration; -import org.springframework.web.filter.CharacterEncodingFilter; -import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; - -import javax.servlet.Filter; - -/** - * Created by vt on 09/02/16. - */ -public class XMPPInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { - @Override - protected Class<?>[] getRootConfigClasses() { - return new Class[]{DataConfiguration.class}; - } - - @Override - protected Class<?>[] getServletConfigClasses() { - return new Class[]{XMPPConfiguration.class}; - } - - @Override - protected String[] getServletMappings() { - return new String[]{ - "/" - }; - } - - @Override - protected Filter[] getServletFilters() { - CharacterEncodingFilter characterEncodingFilter = new CharacterEncodingFilter(); - characterEncodingFilter.setEncoding("UTF-8"); - return new Filter[]{characterEncodingFilter}; - } -} |