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 2015/11/02 19:35:49 UTC

[05/12] isis git commit: ISIS-1222: inject services into Command objects once created by CommandService

ISIS-1222: inject services into Command objects once created by CommandService


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

Branch: refs/heads/master
Commit: 7e53c0366cd70943a4bc156ac2d59480bc47d272
Parents: f06841f
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Mon Nov 2 09:39:12 2015 +0000
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Mon Nov 2 14:17:24 2015 +0000

----------------------------------------------------------------------
 .../core/runtime/system/transaction/IsisTransactionManager.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/7e53c036/core/runtime/src/main/java/org/apache/isis/core/runtime/system/transaction/IsisTransactionManager.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/isis/core/runtime/system/transaction/IsisTransactionManager.java b/core/runtime/src/main/java/org/apache/isis/core/runtime/system/transaction/IsisTransactionManager.java
index f7c1bf1..123f724 100644
--- a/core/runtime/src/main/java/org/apache/isis/core/runtime/system/transaction/IsisTransactionManager.java
+++ b/core/runtime/src/main/java/org/apache/isis/core/runtime/system/transaction/IsisTransactionManager.java
@@ -350,6 +350,8 @@ public class IsisTransactionManager implements SessionScopedComponent {
                 commandService != null 
                     ? commandService.create() 
                     : new CommandDefault();
+        servicesInjector.injectServicesInto(command);
+
         commandContext.setCommand(command);
 
         if(command.getTimestamp() == null) {