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

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


The following commit(s) were added to refs/heads/master by this push:
     new 0057cd2fc2 ISIS-3293: update mignotes on ViewModel
0057cd2fc2 is described below

commit 0057cd2fc24dd641e4d32202ff1c7a36badd9081
Author: Andi Huber <ahu...@apache.org>
AuthorDate: Fri Nov 25 07:59:03 2022 +0100

    ISIS-3293: update mignotes on ViewModel
---
 .../ROOT/pages/2022/2.0.0-RC1/mignotes.adoc        | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git 
a/antora/components/relnotes/modules/ROOT/pages/2022/2.0.0-RC1/mignotes.adoc 
b/antora/components/relnotes/modules/ROOT/pages/2022/2.0.0-RC1/mignotes.adoc
index 87f5de0a59..df94cb2e61 100644
--- a/antora/components/relnotes/modules/ROOT/pages/2022/2.0.0-RC1/mignotes.adoc
+++ b/antora/components/relnotes/modules/ROOT/pages/2022/2.0.0-RC1/mignotes.adoc
@@ -65,3 +65,25 @@ The following changed:
 <artifactId>causeway-viewer-restfulobjects-jaxrsresteasy</artifactId>
 ----
 |===
+
+== Programming Model
+
+The following changed:
+[cols="2a,3a", options="header"]
+
+|===
+
+| previously
+| new
+
+| `ViewModel` implementations were required to have at least a _public_ single 
argument constructor, 
+taking a `String` argument for the `ViewModel's` memento.
+| `ViewModel` implementations now allow *any* _public_ constructor signature, 
+where arguments are auto-resolved by the `ServiceRegistry`.
+
+`String` arguments still get the `ViewModel's` memento passed in.
+
+If the `ViewModel` has multiple _public_ constructors, it picks (the) one, 
+that has an `@Inject` or `@Autowired` annotation.  
+
+|===

Reply via email to