Repository: syncope
Updated Branches:
  refs/heads/master 7e66e3d5a -> a634f7c75


[SYNCOPE-738] Ensuring initialization works with JBoss / Wildfly too


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/a634f7c7
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/a634f7c7
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/a634f7c7

Branch: refs/heads/master
Commit: a634f7c75a53bf341e6479db44a01927dd1bafdb
Parents: 7e66e3d
Author: Francesco Chicchiriccò <[email protected]>
Authored: Mon Sep 5 15:40:21 2016 +0200
Committer: Francesco Chicchiriccò <[email protected]>
Committed: Mon Sep 5 15:40:21 2016 +0200

----------------------------------------------------------------------
 .../core/rest/cxf/ExtendedSwagger2Serializers.java     | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/a634f7c7/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/ExtendedSwagger2Serializers.java
----------------------------------------------------------------------
diff --git 
a/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/ExtendedSwagger2Serializers.java
 
b/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/ExtendedSwagger2Serializers.java
index 0e85752..0bdd107 100644
--- 
a/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/ExtendedSwagger2Serializers.java
+++ 
b/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/ExtendedSwagger2Serializers.java
@@ -61,15 +61,6 @@ public class ExtendedSwagger2Serializers extends 
SwaggerSerializers implements S
 
     protected List<ClassResourceInfo> cris;
 
-    protected final List<String> domains = new ArrayList<>();
-
-    public ExtendedSwagger2Serializers() {
-        super();
-
-        domains.addAll(ApplicationContextProvider.getApplicationContext().
-                getBean(DomainsHolder.class).getDomains().keySet());
-    }
-
     @Override
     public void setDynamicBasePath(final boolean dynamicBasePath) {
         this.dynamicBasePath = dynamicBasePath;
@@ -108,6 +99,10 @@ public class ExtendedSwagger2Serializers extends 
SwaggerSerializers implements S
         }
 
         if (replaceTags || javadocProvider != null) {
+            List<String> domains = new ArrayList<>(
+                    ApplicationContextProvider.getApplicationContext().
+                    getBean(DomainsHolder.class).getDomains().keySet());
+
             Map<String, ClassResourceInfo> operations = new HashMap<>();
             Map<Pair<String, String>, OperationResourceInfo> methods = new 
HashMap<>();
             for (ClassResourceInfo cri : cris) {

Reply via email to