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/13 18:57:13 UTC

[02/11] isis git commit: ISIS-1249: annotate with @DomainServiceLayout. Remove some comments and unnecessary @Programmatic annotation for the @PostConstruct and @PreDestroy.

ISIS-1249: annotate with @DomainServiceLayout.  Remove some comments and unnecessary @Programmatic annotation for the @PostConstruct and @PreDestroy.


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

Branch: refs/heads/master
Commit: 01aeb7746e7eec8bc7a6c8551e4c25199728e298
Parents: b403a2c
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Thu Nov 12 16:34:01 2015 +0000
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Thu Nov 12 16:34:01 2015 +0000

----------------------------------------------------------------------
 .../org/apache/isis/applib/AbstractSubscriber.java    | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/01aeb774/core/applib/src/main/java/org/apache/isis/applib/AbstractSubscriber.java
----------------------------------------------------------------------
diff --git a/core/applib/src/main/java/org/apache/isis/applib/AbstractSubscriber.java b/core/applib/src/main/java/org/apache/isis/applib/AbstractSubscriber.java
index 78703ca..23d681f 100644
--- a/core/applib/src/main/java/org/apache/isis/applib/AbstractSubscriber.java
+++ b/core/applib/src/main/java/org/apache/isis/applib/AbstractSubscriber.java
@@ -19,36 +19,34 @@
 package org.apache.isis.applib;
 
 import javax.annotation.PostConstruct;
-import javax.annotation.PreDestroy;
+
+import org.apache.isis.applib.annotation.DomainServiceLayout;
 import org.apache.isis.applib.annotation.Programmatic;
 import org.apache.isis.applib.services.eventbus.EventBusService;
 
 /**
  * Convenience class for services that act as subscribers.
  */
+@DomainServiceLayout(
+        menuOrder = "1"
+)
 public abstract class AbstractSubscriber {
 
-    //region > postConstruct, preDestroy
-
-    @Programmatic
     @PostConstruct
     public void postConstruct() {
         eventBusService.register(this);
     }
 
     @Programmatic
-    @PreDestroy
     public void preDestroy() {
         eventBusService.unregister(this);
     }
-    //endregion
 
-    //region > injected services
+
     @javax.inject.Inject
     protected DomainObjectContainer container;
 
     @javax.inject.Inject
     protected EventBusService eventBusService;
-    //endregion
 
 }