deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject [2/3] git commit: DELTASPIKE-578 Move initialization before normal-scope flag
Date Wed, 30 Apr 2014 09:15:04 GMT
DELTASPIKE-578 Move initialization before normal-scope flag


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

Branch: refs/heads/master
Commit: b68774d4b8975f6ac44c70812b465bcb88598c93
Parents: 2863467
Author: Thomas Hug <Thomas.Hug@ctp.com>
Authored: Wed Apr 30 10:32:44 2014 +0200
Committer: Thomas Hug <Thomas.Hug@ctp.com>
Committed: Wed Apr 30 10:32:44 2014 +0200

----------------------------------------------------------------------
 .../apache/deltaspike/data/impl/meta/RepositoryComponent.java    | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/b68774d4/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/meta/RepositoryComponent.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/meta/RepositoryComponent.java
b/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/meta/RepositoryComponent.java
index 25f9cc4..edbf009 100644
--- a/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/meta/RepositoryComponent.java
+++ b/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/meta/RepositoryComponent.java
@@ -90,7 +90,7 @@ public class RepositoryComponent
         {
             return;
         }
-
+        initialize();
         if (entityManagerResolver != null && beanManager != null)
         {
             final Set<Bean<?>> beans = beanManager.getBeans(entityManagerResolver);
@@ -101,8 +101,6 @@ public class RepositoryComponent
         {
             entityManagerResolverIsNormalScope = false;
         }
-
-        initialize();
     }
 
     public boolean isEntityManagerResolverIsNormalScope()


Mime
View raw message