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 2019/12/06 12:03:43 UTC

[isis] 05/05: ISIS-2216: deprecates NatureOfService#DOMAIN .... just use @Service instead

This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git

commit 52859c7e944ea57754fcd5783523dba750ef1aed
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Fri Dec 6 11:05:33 2019 +0000

    ISIS-2216: deprecates NatureOfService#DOMAIN .... just use @Service instead
---
 .../apache/isis/applib/annotation/NatureOfService.java | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/core/applib/src/main/java/org/apache/isis/applib/annotation/NatureOfService.java b/core/applib/src/main/java/org/apache/isis/applib/annotation/NatureOfService.java
index d22203e..f02c2aa 100644
--- a/core/applib/src/main/java/org/apache/isis/applib/annotation/NatureOfService.java
+++ b/core/applib/src/main/java/org/apache/isis/applib/annotation/NatureOfService.java
@@ -38,20 +38,24 @@ public enum NatureOfService {
      */
     REST,
     
+    // -- DEPRECATIONS
+
     /**
      * A <em>programmatic</em> service.
      * <p>
-     * The service's actions do not appear on any viewer and are not visible in the REST API. In other words 
-     * these are not contributed to the domain-model. However, the service is injectable into domain objects.  
+     * The service's actions do not appear on any viewer and are not visible in the REST API. In other words
+     * these are not contributed to the domain-model. However, the service is injectable into domain objects.
      * </p>
+     *
+     * @deprecated will be removed with 2.0.0 release! use Spring's {@link org.springframework.stereotype.Service @Service} instead;
+     * @apiNote For now, used as synonym for {@link #REST}
      */
+    @Deprecated
     DOMAIN,
-    
-    // -- DEPRECATIONS
-    
+
     /**
-     * @deprecated will be removed with 2.0.0 release! use {@link #REST} instead; 
-     * @apiNote For now, used as synonym for {@link #REST} 
+     * @deprecated will be removed with 2.0.0 release! use {@link #REST} instead;
+     * @apiNote For now, used as synonym for {@link #REST}
      */
     @Deprecated
     VIEW_REST_ONLY,