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 2021/09/08 22:04:49 UTC
[isis] 02/02: ISIS-2735: wip
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch ISIS-2735-command-log
in repository https://gitbox.apache.org/repos/asf/isis.git
commit 66c5cb94e0a365101ebc449a9313afcb71d1c3f0
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Wed Sep 8 23:04:15 2021 +0100
ISIS-2735: wip
---
.../extensions/commandlog/applib/dom/Command.java | 30 +++++++++++++++-------
1 file changed, 21 insertions(+), 9 deletions(-)
diff --git a/extensions/core/command-log/applib/src/main/java/org/apache/isis/extensions/commandlog/applib/dom/Command.java b/extensions/core/command-log/applib/src/main/java/org/apache/isis/extensions/commandlog/applib/dom/Command.java
index 5dc6c8c..8f73798 100644
--- a/extensions/core/command-log/applib/src/main/java/org/apache/isis/extensions/commandlog/applib/dom/Command.java
+++ b/extensions/core/command-log/applib/src/main/java/org/apache/isis/extensions/commandlog/applib/dom/Command.java
@@ -238,20 +238,31 @@ public abstract class Command implements DomainChangeRecord {
- // UP TO HERE...
-
- public static class ReplayStateFailureReasonDomainEvent extends PropertyDomainEvent<ReplayState> { }
- /**
- * For a {@link org.apache.isis.extensions.commandlog.applib.dom.ReplayState#FAILED failed} replayed command,
- * what the reason was for the failure.
- */
@Property(
- domainEvent = ReplayStateFailureReasonDomainEvent.class
+ domainEvent = ReplayStateFailureReason.DomainEvent.class
)
@PropertyLayout(
hidden = Where.ALL_TABLES,
- multiLine = 5
+ multiLine = ReplayStateFailureReason.MULTILINE
)
+ @Parameter(
+ )
+ @ParameterLayout(
+ multiLine = ReplayStateFailureReason.MULTILINE
+ )
+ @Target({ ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.ANNOTATION_TYPE })
+ @Retention(RetentionPolicy.RUNTIME)
+ public @interface ReplayStateFailureReason {
+
+ int MULTILINE = 5;
+ class DomainEvent extends PropertyDomainEvent<String> {}
+ }
+
+ /**
+ * For a {@link org.apache.isis.extensions.commandlog.applib.dom.ReplayState#FAILED failed} replayed command,
+ * what the reason was for the failure.
+ */
+ @ReplayStateFailureReason
public abstract String getReplayStateFailureReason();
public abstract void setReplayStateFailureReason(String replayStateFailureReason);
@@ -260,6 +271,7 @@ public abstract class Command implements DomainChangeRecord {
}
+
public static class ParentDomainEvent extends PropertyDomainEvent<org.apache.isis.applib.services.command.Command> { }
@Property(
domainEvent = ParentDomainEvent.class