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/06/05 10:51:57 UTC

isis git commit: ISIS-1133: lifecycle callback methods. @PostConstruct, @PreDestroy.

Repository: isis
Updated Branches:
  refs/heads/ISIS-1133 c8b11b7af -> 193678f94


ISIS-1133: lifecycle callback methods.  @PostConstruct, @PreDestroy.


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

Branch: refs/heads/ISIS-1133
Commit: 193678f94829c7d94953bb36dbe545f51733f02a
Parents: c8b11b7
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Fri Jun 5 09:51:50 2015 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Fri Jun 5 09:51:50 2015 +0100

----------------------------------------------------------------------
 .../user-guide/_ug_reference-annotations.adoc   |  2 +
 .../_ug_reference-annotations_aaa_jee.adoc      | 33 +++++++---
 ...rence-annotations_manpage-PostConstruct.adoc | 66 ++++++++++++++++++++
 ...eference-annotations_manpage-PreDestroy.adoc | 50 +++++++++++++++
 .../_ug_reference-methods_lifecycle.adoc        | 50 ++++++++++++---
 ...rence-methods_lifecycle_manpage-created.adoc |  4 +-
 ...erence-methods_lifecycle_manpage-loaded.adoc |  3 +-
 ...nce-methods_lifecycle_manpage-persisted.adoc |  5 +-
 ...ce-methods_lifecycle_manpage-persisting.adoc |  5 +-
 ...rence-methods_lifecycle_manpage-removed.adoc |  5 +-
 ...ence-methods_lifecycle_manpage-removing.adoc |  5 +-
 ...rence-methods_lifecycle_manpage-updated.adoc |  7 ++-
 ...ence-methods_lifecycle_manpage-updating.adoc |  3 +-
 .../src/main/asciidoc/user-guide/ug.adoc        |  2 +-
 14 files changed, 213 insertions(+), 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/193678f9/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations.adoc
index 416afa7..3c6520f 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations.adoc
@@ -47,6 +47,8 @@ include::_ug_reference-annotations_manpage-MinLength.adoc[leveloffset=+1]
 include::_ug_reference-annotations_manpage-Parameter.adoc[leveloffset=+1]
 include::_ug_reference-annotations_manpage-ParameterLayout.adoc[leveloffset=+1]
 include::_ug_reference-annotations_manpage-PersistenceCapable.adoc[leveloffset=+1]
+include::_ug_reference-annotations_manpage-PostConstruct.adoc[leveloffset=+1]
+include::_ug_reference-annotations_manpage-PreDestroy.adoc[leveloffset=+1]
 include::_ug_reference-annotations_manpage-PrimaryKey.adoc[leveloffset=+1]
 include::_ug_reference-annotations_manpage-Programmatic.adoc[leveloffset=+1]
 include::_ug_reference-annotations_manpage-Property.adoc[leveloffset=+1]

http://git-wip-us.apache.org/repos/asf/isis/blob/193678f9/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_aaa_jee.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_aaa_jee.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_aaa_jee.adoc
index eee862c..152ba24 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_aaa_jee.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_aaa_jee.adoc
@@ -5,7 +5,7 @@
 :_imagesdir: images/
 
 
-Although Apache Isis does, as of today, define a good number of its own annotations, the policy is to reuse standard Java/JEE annotations wherever they exist or are added to the Java platform.
+While Apache Isis does, as of today, define a good number of its own annotations, the policy is to reuse standard Java/JEE annotations wherever they exist or are added to the Java platform.
 
 The table below lists the JEE annotations currently recognized.  Expect to see more added in future releases of Isis.
 
@@ -18,10 +18,10 @@ The table below lists the JEE annotations currently recognized.  Expect to see m
 |Layer
 |xref:_ug_reference-object-layout_dynamic[Dynamic layout]?
 
-|xref:_ug_reference-annotations_manpage-RequestScoped[`@javax.enterprise.` +
-`context.` +
-`RequestScoped`]
-|Specify that a domain service has request-scope (rather than a singleton).
+|xref:_ug_reference-annotations_manpage-Digits[`@javax.validation.` +
+`constraints.` +
+`Digits`]
+|Precision/scale for BigDecimal values.
 |Domain
 |
 
@@ -31,13 +31,28 @@ The table below lists the JEE annotations currently recognized.  Expect to see m
 |Domain
 |
 
-|xref:_ug_reference-annotations_manpage-Digits[`@javax.validation.` +
-`constraints.` +
-`Digits`]
-|Precision/scale for BigDecimal values.
+|xref:_ug_reference-annotations_manpage-PostConstruct[`@javax.annotations.` +
+`PostConstruct`]
+|Callback for domain services (either singleton or xref:_ug_reference-annotations_manpage-RequestScoped[request-scoped]) to initialize themselves once instantiated.
+
 |Domain
 |
 
+|xref:_ug_reference-annotations_manpage-PreDestroy[`@javax.annotations.` +
+`PreDestroy`]
+|Callback for domain services (either singleton or xref:_ug_reference-annotations_manpage-RequestScoped[request-scoped]) to clean up resources prior to destruction.
+
+|Domain
+|
+
+|xref:_ug_reference-annotations_manpage-RequestScoped[`@javax.enterprise.` +
+`context.` +
+`RequestScoped`]
+|Specify that a domain service has request-scope (rather than a singleton).
+|Domain
+|
+
+
 |===
 
 

http://git-wip-us.apache.org/repos/asf/isis/blob/193678f9/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PostConstruct.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PostConstruct.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PostConstruct.adoc
new file mode 100644
index 0000000..71e65ee
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PostConstruct.adoc
@@ -0,0 +1,66 @@
+[[_ug_reference-annotations_manpage-PostConstruct]]
+= `@PostConstruct` (`javax`)
+:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR  CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
+:_basedir: ../
+:_imagesdir: images/
+
+
+The `@javax.annotation.PostConstruct` annotation, as defined in link:https://jcp.org/en/jsr/detail?id=250[JSR-250],  is recognized by Apache Isis as a callback method on domain services to be called just after they have been constructed, in order that they initialize themselves.
+
+For the default application-scoped (singleton) domain services, this means that the method, if present, is called during the bootstrapping of the application.  For xref:_ug_reference-annotations_manpage-RequestScoped[`@RequestScoped`] domain services, the method is called at the beginning of the request.
+
+The signature of the method is:
+
+[source,java]
+----
+@PostConstruct
+@Programmatic                          <1>
+public void postConstruct() { ... }    <2>
+----
+<1> The method should be annotated using xref:_ug_reference-annotations_manpage-Programmatic[`@Programmatic`] so that it is not interpreted as an action.
+<2> the method can have any name, but must have `public` visibility.
+
+In the form shown above the method can either accept no arguments.  Alternatively, the method can accept a parameter of type `Map<String,String>`:
+
+[source,java]
+----
+@PostConstruct
+@Programmatic
+public void postConstruct(Map<String,String> properties) { ... }
+----
+Isis uses argument to pass in the configuration properties read from all xref:_ug_runtime_configuration-files[configuration files]:
+
+[TIP]
+====
+Alternatively, you could inject xref:_ug_reference-services-api_manpage-DomainObjectContainer[`DomainObjectContainer`] into the service and read configuration properties using `DomainObjectContainer#getProperty(...)` and related methods.
+====
+
+A common use case is for domain services that interact with the xref:_ug_reference-services-api_manpage-EventBusService[`EventBusService`].  For example:
+
+[source,java]
+----
+@DomainService(nature=NatureOfService.DOMAIN)
+public class MySubscribingService {
+    @Programmatic
+    @PostConstruct
+    public void postConstruct() {
+        eventBusService.register(this);
+    }
+    @Programmatic
+    @PreDestroy
+    public void preDestroy() {
+        eventBusService.unregister(this);
+    }
+    ...
+    @javax.inject.Inject
+    EventBusService eventBusService;
+}
+----
+
+Other use cases include obtaining connections to external datasources, eg subscribing to an ActiveMQ router, say, or initializing/cleaning up a background scheduler such as Quartz.
+
+
+
+
+
+See also xref:_ug_reference-annotations_manpage-PreDestroy[`@PreDestroy`]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/isis/blob/193678f9/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PreDestroy.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PreDestroy.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PreDestroy.adoc
new file mode 100644
index 0000000..e3dcc31
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PreDestroy.adoc
@@ -0,0 +1,50 @@
+[[_ug_reference-annotations_manpage-PreDestroy]]
+= `@PreDestroy` (`javax`)
+:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR  CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
+:_basedir: ../
+:_imagesdir: images/
+
+
+
+The `@javax.annotation.PreDestroy` annotation, as defined in link:https://jcp.org/en/jsr/detail?id=250[JSR-250], recognized by Apache Isis as a callback method on domain services to be called just as they go out of scope.
+
+For the default application-scoped (singleton) domain services, this means that the method, if present, is called just prior to the termination of the application.  For xref:_ug_reference-annotations_manpage-RequestScoped[`@RequestScoped`] domain services, the method is called at the end of the request.
+
+The signature of the method is:
+
+[source,java]
+----
+@PreDestroy
+@Programmatic                       <1>
+public void preDestroy() { ... }    <2>
+----
+<1> The method should be annotated using xref:_ug_reference-annotations_manpage-Programmatic[`@Programmatic`] so that it is not interpreted as an action.
+<2> the method can have any name, but must have `public` visibility, and accept no arguments.
+
+A common use case is for domain services that interact with the xref:_ug_reference-services-api_manpage-EventBusService[`EventBusService`].  For example:
+
+[source,java]
+----
+@DomainService(nature=NatureOfService.DOMAIN)
+public class MySubscribingService {
+    @Programmatic
+    @PostConstruct
+    public void postConstruct() {
+        eventBusService.register(this);
+    }
+    @Programmatic
+    @PreDestroy
+    public void preDestroy() {
+        eventBusService.unregister(this);
+    }
+    ...
+    @javax.inject.Inject
+    EventBusService eventBusService;
+}
+----
+
+Other use cases include obtaining connections to external datasources, eg subscribing to an ActiveMQ router, say, or initializing/cleaning up a background scheduler such as Quartz.
+
+
+
+See also xref:_ug_reference-annotations_manpage-PostConstruct[`@PostConstruct`]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/isis/blob/193678f9/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle.adoc
index 35ff6d7..d3db33b 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle.adoc
@@ -9,14 +9,45 @@
 
 The lifecycle callback methods notify a domain entity about its interaction within the persistence lifecycle.  For example, the entity is notified immediately prior to being persisted, or when it is about to be updated.
 
-[WARNING]
-====
-We believe there may some scenarios (not yet fully catalogued) where the lifecycle method is not called.  As such we recommend that you don't rely on these methods and/or fully test they are called as required in your apps
-
-As an alternative, consider using Isis' event bus and domain events.
-====
-
-The lifecycle methods are:
+Note that these callbacks are fired by Isis rather than JDO.  In the future we may deprecate them because they duplicate functionality already available in JDO.
+
+You may therefore want to consider using the JDO API directly by adding a link:http://www.datanucleus.org/products/datanucleus/jdo/lifecycle_callbacks.html[lifecycle listener] through the xref:_ug_reference-services-api_manpage-IsisJdoSupport[`IsisJdoSupport`] domain service.
+
+For example:
+
+[source,java]
+----
+@DomainService(nature=NatureOfService.DOMAIN)
+public class ObjectChangedListenerService
+        implements javax.jdo.listener.StoreLifecycleListener {   // <1>
+    @Programmatic
+    @PostConstruct
+    public void init() {
+        getPmFactory().addInstanceLifecycleListener(this);
+    }
+    @Programmatic
+    @PreDestroy
+    public void tidyUp() {
+        getPmFactory().removeInstanceLifecycleListener(this);
+    }
+    private PersistenceManagerFactory getPmFactory() {
+        return jdoSupport.getPersistenceManager()
+               .getPersistenceManagerFactory();                 // <2>
+    }
+    @Programmatic
+    public void preStore (InstanceLifecycleEvent event) { ... }
+    @Programmatic
+    public void postStore (InstanceLifecycleEvent event) { ... }
+    @Inject
+    IsisJdoSupport jdoSupport;
+}
+----
+<1> implement whichever callback lifecycle listeners are of interest
+<2> register on the factory so set up for every subsequent session.
+
+
+
+All that said, if you _do_ want to use Isis' own lifecycle methods, then the methods are:
 
 .Lifecycle methods (partial support)
 [cols="1,4a", options="header"]
@@ -38,7 +69,7 @@ The lifecycle methods are:
 |called when a (not-yet-persistent) object is just about to be persisted from the object store
 
 |xref:_ug_reference-methods_lifecycle_manpage-removed[`removed()`]
-|called when a (persistent) object has just been persisted from the object store
+|called when a (persistent) object has just been deleted from the object store
 
 |xref:_ug_reference-methods_lifecycle_manpage-removing[`removing()`]
 |called when a (persistent) object is just about to be deleted from the object store
@@ -70,6 +101,7 @@ Some lifecycle methods have been deprecated:
 
 |`loading()`
 |callback for when the (persistent) object is just about to be loaded from the object store. +
+
 [WARNING]
 ====
 This method is never called.

http://git-wip-us.apache.org/repos/asf/isis/blob/193678f9/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-created.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-created.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-created.adoc
index 775a16e..2e619e6 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-created.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-created.adoc
@@ -4,6 +4,8 @@
 :_basedir: ../
 :_imagesdir: images/
 
-IMPORTANT: TODO
+
+The `created()` lifecycle callback method is called when an object has just been created using xref:_ug_reference-services-api_manpage-DomainObjectContainer[`newTransientInstance()`]
+
 
 

http://git-wip-us.apache.org/repos/asf/isis/blob/193678f9/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-loaded.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-loaded.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-loaded.adoc
index d4d27aa..f17f6b2 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-loaded.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-loaded.adoc
@@ -4,6 +4,7 @@
 :_basedir: ../
 :_imagesdir: images/
 
-IMPORTANT: TODO
 
 
+The `loaded()` lifecycle callback method is called when a (persistent) object has just been loaded from the object store.
+

http://git-wip-us.apache.org/repos/asf/isis/blob/193678f9/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-persisted.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-persisted.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-persisted.adoc
index 2bebaa6..5eb0705 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-persisted.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-persisted.adoc
@@ -4,6 +4,9 @@
 :_basedir: ../
 :_imagesdir: images/
 
-IMPORTANT: TODO
 
 
+The `persisted()` lifecycle callback method is called when object has just been persisted from the object store.
+
+See also xref:_ug_reference-methods_lifecycle_manpage-persisting[`persisting()`].
+

http://git-wip-us.apache.org/repos/asf/isis/blob/193678f9/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-persisting.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-persisting.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-persisting.adoc
index 766f7ae..6754217 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-persisting.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-persisting.adoc
@@ -4,6 +4,9 @@
 :_basedir: ../
 :_imagesdir: images/
 
-IMPORTANT: TODO
 
 
+The `persisting()` lifecycle callback method is called when a (not-yet-persistent) object is just about to be persisted from the object store
+
+See also xref:_ug_reference-methods_lifecycle_manpage-persisted[`persisted()`].
+

http://git-wip-us.apache.org/repos/asf/isis/blob/193678f9/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-removed.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-removed.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-removed.adoc
index 816afdb..685005f 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-removed.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-removed.adoc
@@ -4,6 +4,9 @@
 :_basedir: ../
 :_imagesdir: images/
 
-IMPORTANT: TODO
 
 
+The `removed()` lifecycle callback method is called when a (persistent) object has just been deleted from the object store
+
+See also xref:_ug_reference-methods_lifecycle_manpage-removing[`removing()`].
+

http://git-wip-us.apache.org/repos/asf/isis/blob/193678f9/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-removing.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-removing.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-removing.adoc
index e18f464..58688c9 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-removing.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-removing.adoc
@@ -4,6 +4,9 @@
 :_basedir: ../
 :_imagesdir: images/
 
-IMPORTANT: TODO
 
 
+The `removing()` lifecycle callback method is called when a (persistent) object is just about to be deleted from the object store
+
+See also xref:_ug_reference-methods_lifecycle_manpage-removed[`removed()`].
+

http://git-wip-us.apache.org/repos/asf/isis/blob/193678f9/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-updated.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-updated.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-updated.adoc
index badb294..f779ead 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-updated.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-updated.adoc
@@ -4,6 +4,11 @@
 :_basedir: ../
 :_imagesdir: images/
 
-IMPORTANT: TODO
 
 
+
+
+The `updated()` lifecycle callback method is called when a (persistent) object has just been updated in the object store
+
+See also xref:_ug_reference-methods_lifecycle_manpage-updating[`updating()`].
+

http://git-wip-us.apache.org/repos/asf/isis/blob/193678f9/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-updating.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-updating.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-updating.adoc
index 6ff47a9..5912cd3 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-updating.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_lifecycle_manpage-updating.adoc
@@ -4,6 +4,7 @@
 :_basedir: ../
 :_imagesdir: images/
 
-IMPORTANT: TODO
 
+The `updating()` lifecycle callback method is called when a (persistent) object is just about to be updated in the object store
 
+See also xref:_ug_reference-methods_lifecycle_manpage-updated[`updated()`].

http://git-wip-us.apache.org/repos/asf/isis/blob/193678f9/adocs/documentation/src/main/asciidoc/user-guide/ug.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/ug.adoc b/adocs/documentation/src/main/asciidoc/user-guide/ug.adoc
index 8a1a31b..e29421e 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/ug.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/ug.adoc
@@ -14,7 +14,7 @@
 //include::_ug_how-tos.adoc[leveloffset=+1]
 //include::_ug_more-advanced.adoc[leveloffset=+1]
 
-//include::_ug_reference-annotations.adoc[leveloffset=+1]
+include::_ug_reference-annotations.adoc[leveloffset=+1]
 include::_ug_reference-methods.adoc[leveloffset=+1]
 include::_ug_reference-services-api.adoc[leveloffset=+1]
 include::_ug_reference-services-spi.adoc[leveloffset=+1]