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/01/26 15:57:16 UTC

[isis-app-simpleapp] 02/05: ISIS-1628: no longer requires method to be overridden in mixin subclass.

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

danhaywood pushed a commit to branch ISIS-1628
in repository https://gitbox.apache.org/repos/asf/isis-app-simpleapp.git

commit 8b6c78b44633af8ca399db77f08ac2f749b23573
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Thu Jan 21 23:11:27 2021 +0000

    ISIS-1628: no longer requires method to be overridden in mixin subclass.
---
 .../simple/mixins/CollectionCountSubscriber.java   | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/module-simple/src/main/java/domainapp/modules/simple/mixins/CollectionCountSubscriber.java b/module-simple/src/main/java/domainapp/modules/simple/mixins/CollectionCountSubscriber.java
new file mode 100644
index 0000000..e8211fa
--- /dev/null
+++ b/module-simple/src/main/java/domainapp/modules/simple/mixins/CollectionCountSubscriber.java
@@ -0,0 +1,22 @@
+package domainapp.modules.simple.mixins;
+
+import org.springframework.stereotype.Component;
+
+import org.apache.isis.applib.annotation.Property;
+
+import domainapp.modules.simple.dom.so.SimpleObject;
+
+/*
+ * ISIS-1628: the @Property mixin annotation of the abstract super class is ignored and
+ * needs to be duplicated on the concrete sub class.
+ *
+ * To replicate the problem remove this annotation and see how the contribution disappears from the UI.
+ */
+@Component
+public class SimpleObject_numberOfChildren extends Collection_count {
+
+	public SimpleObject_numberOfChildren(SimpleObject simpleObject) {
+		super(simpleObject.getChildren());
+	}
+
+}