You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2021/05/12 17:15:16 UTC
[isis] branch master updated: ISIS-2666: demo dep. args.: bring
syntax up to speed
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 229a7cd ISIS-2666: demo dep. args.: bring syntax up to speed
229a7cd is described below
commit 229a7cd8087158d7a2a238963d5b4f44e22ad25d
Author: Andi Huber <ah...@apache.org>
AuthorDate: Wed May 12 19:14:58 2021 +0200
ISIS-2666: demo dep. args.: bring syntax up to speed
---
.../progmodel/depargs/DependentArgsActionDemo_useDefault.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/examples/demo/domain/src/main/java/demoapp/dom/domain/actions/progmodel/depargs/DependentArgsActionDemo_useDefault.java b/examples/demo/domain/src/main/java/demoapp/dom/domain/actions/progmodel/depargs/DependentArgsActionDemo_useDefault.java
index 9cd8fec..6b9d765 100644
--- a/examples/demo/domain/src/main/java/demoapp/dom/domain/actions/progmodel/depargs/DependentArgsActionDemo_useDefault.java
+++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/actions/progmodel/depargs/DependentArgsActionDemo_useDefault.java
@@ -41,7 +41,7 @@ public class DependentArgsActionDemo_useDefault {
@Inject MessageService messageService;
- private final DependentArgsActionDemo holder;
+ private final DependentArgsActionDemo mixee;
@Value @Accessors(fluent = true) // fluent so we can replace this with Java(14+) records later
static class Parameters {
@@ -63,20 +63,20 @@ public class DependentArgsActionDemo_useDefault {
) {
messageService.informUser(message);
- return holder;
+ return mixee;
}
// -- PARAM 0 (Parity)
@MemberSupport
- public Parity default0Act() {
- return holder.getDialogParityDefault();
+ public Parity defaultParity(Parameters params) {
+ return mixee.getDialogParityDefault();
}
// -- PARAM 1 (String message)
@MemberSupport
- public String default1Act(Parameters params) {
+ public String defaultMessage(Parameters params) {
val parity = params.parity(); // <-- the refining parameter from the dialog above