You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2014/09/26 10:45:10 UTC
git commit: ISIS-866:use ConcurrentMap rather than LinkedHashMap in
ServiceInstantiator (since is a singleton,
could conceivably be accessed by multiple threads at once).
Repository: isis
Updated Branches:
refs/heads/master a33021644 -> 5bf7917c7
ISIS-866:use ConcurrentMap rather than LinkedHashMap in ServiceInstantiator (since is a singleton, could conceivably be accessed by multiple threads at once).
Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/5bf7917c
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/5bf7917c
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/5bf7917c
Branch: refs/heads/master
Commit: 5bf7917c7eb7c0adfa11cb7b39e4354618f5b843
Parents: a330216
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Fri Sep 26 09:44:48 2014 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Fri Sep 26 09:44:48 2014 +0100
----------------------------------------------------------------------
.../apache/isis/core/runtime/services/ServiceInstantiator.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/isis/blob/5bf7917c/core/runtime/src/main/java/org/apache/isis/core/runtime/services/ServiceInstantiator.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/isis/core/runtime/services/ServiceInstantiator.java b/core/runtime/src/main/java/org/apache/isis/core/runtime/services/ServiceInstantiator.java
index b87c4db..31705db 100644
--- a/core/runtime/src/main/java/org/apache/isis/core/runtime/services/ServiceInstantiator.java
+++ b/core/runtime/src/main/java/org/apache/isis/core/runtime/services/ServiceInstantiator.java
@@ -173,8 +173,8 @@ public final class ServiceInstantiator {
}
private Set<Class<?>> cached = Sets.newHashSet();
- private Map<Class<?>, Method> postConstructMethodsByServiceClass = Maps.newLinkedHashMap();
- private Map<Class<?>, Method> preDestroyMethodsByServiceClass = Maps.newLinkedHashMap();
+ private Map<Class<?>, Method> postConstructMethodsByServiceClass = Maps.newConcurrentMap();
+ private Map<Class<?>, Method> preDestroyMethodsByServiceClass = Maps.newConcurrentMap();
<T> void callPostConstructIfPresent(T service) {