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 2016/10/21 15:01:02 UTC

[08/44] isis git commit: ISIS-1481: no need to obtain SessionLoggingService from within a session.

ISIS-1481: no need to obtain SessionLoggingService from within a session.


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

Branch: refs/heads/master
Commit: e5ecb8821717b287f96eee4cd711665b5c14b87f
Parents: bab40dc
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Wed Sep 7 14:36:11 2016 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Wed Sep 7 14:36:11 2016 +0100

----------------------------------------------------------------------
 .../integration/wicket/AuthenticatedWebSessionForIsis.java  | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/e5ecb882/core/viewer-wicket-impl/src/main/java/org/apache/isis/viewer/wicket/viewer/integration/wicket/AuthenticatedWebSessionForIsis.java
----------------------------------------------------------------------
diff --git a/core/viewer-wicket-impl/src/main/java/org/apache/isis/viewer/wicket/viewer/integration/wicket/AuthenticatedWebSessionForIsis.java b/core/viewer-wicket-impl/src/main/java/org/apache/isis/viewer/wicket/viewer/integration/wicket/AuthenticatedWebSessionForIsis.java
index 21189a1..d3470db 100644
--- a/core/viewer-wicket-impl/src/main/java/org/apache/isis/viewer/wicket/viewer/integration/wicket/AuthenticatedWebSessionForIsis.java
+++ b/core/viewer-wicket-impl/src/main/java/org/apache/isis/viewer/wicket/viewer/integration/wicket/AuthenticatedWebSessionForIsis.java
@@ -183,14 +183,7 @@ public class AuthenticatedWebSessionForIsis extends AuthenticatedWebSession impl
     }
 
     protected SessionLoggingService getSessionLoggingService() {
-        return getIsisSessionFactory().doInSession(new Callable<SessionLoggingService>() {
-            @Override
-            public SessionLoggingService call() throws Exception {
-
-                // REVIEW: I strongly suspect that this doesn't need to be done in a session anymore
-                return getIsisSessionFactory().getServicesInjector().lookupService(SessionLoggingService.class);
-            }
-        });
+        return getIsisSessionFactory().getServicesInjector().lookupService(SessionLoggingService.class);
     }
 
     @Override