You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2024/04/07 16:03:52 UTC
(causeway-app-referenceapp) 02/03: renames DemoApp to ReferenceApp etc
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/causeway-app-referenceapp.git
commit 98141558555414dc2d97712ef358a9959959e6f5
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Sun Apr 7 15:33:19 2024 +0100
renames DemoApp to ReferenceApp etc
---
.../demoapp/dom/{DemoModuleCommon.java => ReferenceModuleCommon.java} | 4 ++--
domain/src/main/java/demoapp/dom/ReferenceModuleJdo.java | 2 +-
domain/src/main/java/demoapp/dom/ReferenceModuleJpa.java | 2 +-
.../dom/_infra/urlencoding/UrlEncodingServiceNaiveInMemory.java | 2 +-
.../actions/Action/semantics/ActionSemanticsPage-description.adoc | 2 +-
.../ActionLayout/cssClass/ActionLayoutCssClassPage-description.adoc | 2 +-
.../cssClassFa/ActionLayoutCssClassFaPage-description.adoc | 2 +-
.../editing/jdo/DomainObjectEditingEntityImpl-description.adoc | 2 +-
.../editing/jpa/DomainObjectEditingEntityImpl-description.adoc | 2 +-
.../DomainObjectEntityChangePublishingPage-description.adoc | 2 +-
.../jdo/DomainObjectEntityChangePublishingEntityImpl-description.adoc | 2 +-
.../jpa/DomainObjectEntityChangePublishingEntityImpl-description.adoc | 2 +-
.../Property/editing/jdo/PropertyEditingEntityImpl-description.adoc | 2 +-
.../Property/editing/jpa/PropertyEditingEntityImpl-description.adoc | 2 +-
.../properties/PropertyLayout/navigable/FileNodeVm-description.adoc | 4 ++--
...moHomePage-description.adoc => ReferenceHomePage-description.adoc} | 2 +-
.../{DemoHomePage-welcome.adoc => ReferenceHomePage-welcome.adoc} | 2 +-
.../dom/homepage/{DemoHomePage.java => ReferenceHomePage.java} | 2 +-
.../{DemoHomePage.layout.xml => ReferenceHomePage.layout.xml} | 0
.../demoapp/testing/jpa/SpinUpReferenceJpaTest.verify.approved.yaml | 2 +-
20 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/domain/src/main/java/demoapp/dom/DemoModuleCommon.java b/domain/src/main/java/demoapp/dom/ReferenceModuleCommon.java
similarity index 96%
rename from domain/src/main/java/demoapp/dom/DemoModuleCommon.java
rename to domain/src/main/java/demoapp/dom/ReferenceModuleCommon.java
index b995ff2..7c82a4f 100644
--- a/domain/src/main/java/demoapp/dom/DemoModuleCommon.java
+++ b/domain/src/main/java/demoapp/dom/ReferenceModuleCommon.java
@@ -45,8 +45,8 @@ import org.apache.causeway.testing.fixtures.applib.CausewayModuleTestingFixtures
})
@ComponentScan(
basePackageClasses= {
- DemoModuleCommon.class
+ ReferenceModuleCommon.class
})
-public class DemoModuleCommon {
+public class ReferenceModuleCommon {
}
diff --git a/domain/src/main/java/demoapp/dom/ReferenceModuleJdo.java b/domain/src/main/java/demoapp/dom/ReferenceModuleJdo.java
index 4bb215f..645bab3 100644
--- a/domain/src/main/java/demoapp/dom/ReferenceModuleJdo.java
+++ b/domain/src/main/java/demoapp/dom/ReferenceModuleJdo.java
@@ -31,7 +31,7 @@ import org.apache.causeway.persistence.jdo.datanucleus.CausewayModulePersistence
@Configuration
@Profile("demo-jdo")
@Import({
- DemoModuleCommon.class,
+ ReferenceModuleCommon.class,
CausewayModulePersistenceJdoDatanucleus.class,
CausewayModuleExtCommandLogPersistenceJdo.class,
})
diff --git a/domain/src/main/java/demoapp/dom/ReferenceModuleJpa.java b/domain/src/main/java/demoapp/dom/ReferenceModuleJpa.java
index b2e8d53..740942d 100644
--- a/domain/src/main/java/demoapp/dom/ReferenceModuleJpa.java
+++ b/domain/src/main/java/demoapp/dom/ReferenceModuleJpa.java
@@ -111,7 +111,7 @@ import demoapp.dom.types.primitive.shorts.jpa.PrimitiveShortJpa;
@Configuration
@Profile("demo-jpa")
@Import({
- DemoModuleCommon.class,
+ ReferenceModuleCommon.class,
CausewayModulePersistenceJpaEclipselink.class,
CausewayModuleExtCommandLogPersistenceJpa.class,
})
diff --git a/domain/src/main/java/demoapp/dom/_infra/urlencoding/UrlEncodingServiceNaiveInMemory.java b/domain/src/main/java/demoapp/dom/_infra/urlencoding/UrlEncodingServiceNaiveInMemory.java
index 3ffb0ba..d6e2afd 100644
--- a/domain/src/main/java/demoapp/dom/_infra/urlencoding/UrlEncodingServiceNaiveInMemory.java
+++ b/domain/src/main/java/demoapp/dom/_infra/urlencoding/UrlEncodingServiceNaiveInMemory.java
@@ -96,7 +96,7 @@ public class UrlEncodingServiceNaiveInMemory implements UrlEncodingService {
val encodedString = map.get(base64Key);
if(encodedString==null) {
throw new UnrecoverableException("Cache miss on view model recreation attempt. "
- + "(This cache is specific to the Demo App.)");
+ + "(This cache is specific to the Reference App.)");
}
return urlEncodingService.decode(encodedString);
}
diff --git a/domain/src/main/java/demoapp/dom/domain/actions/Action/semantics/ActionSemanticsPage-description.adoc b/domain/src/main/java/demoapp/dom/domain/actions/Action/semantics/ActionSemanticsPage-description.adoc
index 040dc5d..b66f6f0 100644
--- a/domain/src/main/java/demoapp/dom/domain/actions/Action/semantics/ActionSemanticsPage-description.adoc
+++ b/domain/src/main/java/demoapp/dom/domain/actions/Action/semantics/ActionSemanticsPage-description.adoc
@@ -61,7 +61,7 @@ Since invoking a safe query-only action will often return the same result (at le
To leverage this, the action must be invoked "through" the framework, in other words using the `WrapperFactory` service.
-To demonstrate this, the demo app declares the following action:
+To demonstrate this, the reference app declares the following action:
[source,java,indent=0]
----
diff --git a/domain/src/main/java/demoapp/dom/domain/actions/ActionLayout/cssClass/ActionLayoutCssClassPage-description.adoc b/domain/src/main/java/demoapp/dom/domain/actions/ActionLayout/cssClass/ActionLayoutCssClassPage-description.adoc
index 936cb80..c6f0f93 100644
--- a/domain/src/main/java/demoapp/dom/domain/actions/ActionLayout/cssClass/ActionLayoutCssClassPage-description.adoc
+++ b/domain/src/main/java/demoapp/dom/domain/actions/ActionLayout/cssClass/ActionLayoutCssClassPage-description.adoc
@@ -107,7 +107,7 @@ Rather than styling each action individually, it's possible to use a configurati
It works by specifying a set of `regex:cssClass` pairs; if the action's identifier matches the regex, then the CSS class is applied.
This is a great way to ensure that actions with similar semantics have similar names; they will then pick up the same visual cues.
-The following is taken from this demo app:
+The following is taken from this reference app:
[source,yaml]
.application.yml
diff --git a/domain/src/main/java/demoapp/dom/domain/actions/ActionLayout/cssClassFa/ActionLayoutCssClassFaPage-description.adoc b/domain/src/main/java/demoapp/dom/domain/actions/ActionLayout/cssClassFa/ActionLayoutCssClassFaPage-description.adoc
index ce43c4e..0978145 100644
--- a/domain/src/main/java/demoapp/dom/domain/actions/ActionLayout/cssClassFa/ActionLayoutCssClassFaPage-description.adoc
+++ b/domain/src/main/java/demoapp/dom/domain/actions/ActionLayout/cssClassFa/ActionLayoutCssClassFaPage-description.adoc
@@ -38,7 +38,7 @@ Rather than styling each action individually, it's possible to use a configurati
It works by specifying a set of `regex:cssClassFa` pairs; if the action's identifier matches the regex, then the fa icon is applied.
This is a great way to ensure that actions with similar semantics have similar names; they will then pick up the same visual cues.
-The following is taken from this demo app:
+The following is taken from this reference app:
[source,yaml]
diff --git a/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/editing/jdo/DomainObjectEditingEntityImpl-description.adoc b/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/editing/jdo/DomainObjectEditingEntityImpl-description.adoc
index ab23346..a6ee96e 100644
--- a/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/editing/jdo/DomainObjectEditingEntityImpl-description.adoc
+++ b/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/editing/jdo/DomainObjectEditingEntityImpl-description.adoc
@@ -1,6 +1,6 @@
: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 ag [...]
-In this demo app, property editing has been disabled by default.
+In this reference app, property editing has been disabled by default.
This entity class re-enables editing using `@DomainObject#editing`, and then selectively _disables_ it again for one of the properties using `@Property#editing`.
[source,java,indent=0]
diff --git a/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/editing/jpa/DomainObjectEditingEntityImpl-description.adoc b/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/editing/jpa/DomainObjectEditingEntityImpl-description.adoc
index 8d3c544..4f49ef2 100644
--- a/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/editing/jpa/DomainObjectEditingEntityImpl-description.adoc
+++ b/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/editing/jpa/DomainObjectEditingEntityImpl-description.adoc
@@ -1,6 +1,6 @@
: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 ag [...]
-In this demo app, property editing has been disabled by default, but has been explicitly enabled for this class:
+In this reference app, property editing has been disabled by default, but has been explicitly enabled for this class:
[source,java,indent=0]
.DomainObjectEditingJpa.java
diff --git a/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/entityChangePublishing/DomainObjectEntityChangePublishingPage-description.adoc b/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/entityChangePublishing/DomainObjectEntityChangePublishingPage-description.adoc
index a71a097..f137818 100644
--- a/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/entityChangePublishing/DomainObjectEntityChangePublishingPage-description.adoc
+++ b/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/entityChangePublishing/DomainObjectEntityChangePublishingPage-description.adoc
@@ -51,7 +51,7 @@ include::../../../_changes/EntityChangesSubscriberToCaptureChangesInMemory.java[
----
<.> describes the set of changes
-* the list of recent changes is shown because this page implementing an `ExposeCapturedChanges` marker interface (part of the demo app, not the framework).
+* the list of recent changes is shown because this page implementing an `ExposeCapturedChanges` marker interface (part of this reference app, not the framework).
A mixin then contributes the "recentChanges" collection:
+
[source,java,indent=0]
diff --git a/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/entityChangePublishing/jdo/DomainObjectEntityChangePublishingEntityImpl-description.adoc b/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/entityChangePublishing/jdo/DomainObjectEntityChangePublishingEntityImpl-description.adoc
index 32882d2..062cd00 100644
--- a/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/entityChangePublishing/jdo/DomainObjectEntityChangePublishingEntityImpl-description.adoc
+++ b/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/entityChangePublishing/jdo/DomainObjectEntityChangePublishingEntityImpl-description.adoc
@@ -1,6 +1,6 @@
: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 ag [...]
-In this demo app, entityChangePublishing has been disabled by default, but has been explicitly enabled on this class:
+In this reference app, `entityChangePublishing` has been disabled by default, but has been explicitly enabled on this class:
[source,java,indent=0]
.DomainObjectEntityChangePublishingEntityImpl.java
diff --git a/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/entityChangePublishing/jpa/DomainObjectEntityChangePublishingEntityImpl-description.adoc b/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/entityChangePublishing/jpa/DomainObjectEntityChangePublishingEntityImpl-description.adoc
index 32882d2..062cd00 100644
--- a/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/entityChangePublishing/jpa/DomainObjectEntityChangePublishingEntityImpl-description.adoc
+++ b/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/entityChangePublishing/jpa/DomainObjectEntityChangePublishingEntityImpl-description.adoc
@@ -1,6 +1,6 @@
: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 ag [...]
-In this demo app, entityChangePublishing has been disabled by default, but has been explicitly enabled on this class:
+In this reference app, `entityChangePublishing` has been disabled by default, but has been explicitly enabled on this class:
[source,java,indent=0]
.DomainObjectEntityChangePublishingEntityImpl.java
diff --git a/domain/src/main/java/demoapp/dom/domain/properties/Property/editing/jdo/PropertyEditingEntityImpl-description.adoc b/domain/src/main/java/demoapp/dom/domain/properties/Property/editing/jdo/PropertyEditingEntityImpl-description.adoc
index ac4c338..d9a95c2 100644
--- a/domain/src/main/java/demoapp/dom/domain/properties/Property/editing/jdo/PropertyEditingEntityImpl-description.adoc
+++ b/domain/src/main/java/demoapp/dom/domain/properties/Property/editing/jdo/PropertyEditingEntityImpl-description.adoc
@@ -1,6 +1,6 @@
: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 ag [...]
-In this demo app, property editing is disabled by default.
+In this reference app, property editing is disabled by default.
However:
diff --git a/domain/src/main/java/demoapp/dom/domain/properties/Property/editing/jpa/PropertyEditingEntityImpl-description.adoc b/domain/src/main/java/demoapp/dom/domain/properties/Property/editing/jpa/PropertyEditingEntityImpl-description.adoc
index ac4c338..d9a95c2 100644
--- a/domain/src/main/java/demoapp/dom/domain/properties/Property/editing/jpa/PropertyEditingEntityImpl-description.adoc
+++ b/domain/src/main/java/demoapp/dom/domain/properties/Property/editing/jpa/PropertyEditingEntityImpl-description.adoc
@@ -1,6 +1,6 @@
: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 ag [...]
-In this demo app, property editing is disabled by default.
+In this reference app, property editing is disabled by default.
However:
diff --git a/domain/src/main/java/demoapp/dom/domain/properties/PropertyLayout/navigable/FileNodeVm-description.adoc b/domain/src/main/java/demoapp/dom/domain/properties/PropertyLayout/navigable/FileNodeVm-description.adoc
index dc19469..ff41d56 100644
--- a/domain/src/main/java/demoapp/dom/domain/properties/PropertyLayout/navigable/FileNodeVm-description.adoc
+++ b/domain/src/main/java/demoapp/dom/domain/properties/PropertyLayout/navigable/FileNodeVm-description.adoc
@@ -33,7 +33,7 @@ include::FileNodeVm.java[tags=navigable]
<.> indicates that this property returns a reference to its "parent" within some hierarchy
<.> there is no requirement for the property to be visible.
-In the case of this demo app, the parent also happens to be a `FileNodeVm`.
+In the case of this reference app, the parent also happens to be a `FileNodeVm`.
However, in general, any type of the parent can be different from the type of the child.
The returned parent is itself queried recursively, until eventually an object is returned that has no parent.
@@ -104,7 +104,7 @@ public interface TreeAdapter<T> {
}
----
-In the case of the demo app, the implementation is `FileSystemTreeAdapter`, which navigate the host computer's filesystem:
+In the case of this reference app, the implementation is `FileSystemTreeAdapter`, which navigate the host computer's filesystem:
[source,java,indent=0]
----
diff --git a/domain/src/main/java/demoapp/dom/homepage/DemoHomePage-description.adoc b/domain/src/main/java/demoapp/dom/homepage/ReferenceHomePage-description.adoc
similarity index 97%
rename from domain/src/main/java/demoapp/dom/homepage/DemoHomePage-description.adoc
rename to domain/src/main/java/demoapp/dom/homepage/ReferenceHomePage-description.adoc
index 64d522c..c619f5a 100644
--- a/domain/src/main/java/demoapp/dom/homepage/DemoHomePage-description.adoc
+++ b/domain/src/main/java/demoapp/dom/homepage/ReferenceHomePage-description.adoc
@@ -14,7 +14,7 @@ In terms of code, the framework indicates which view model is the home page usin
[source,java]
----
-include::DemoHomePage.java[tags="class"]
+include::ReferenceHomePage.java[tags="class"]
----
<.> declares this view-model class to be used as the viewer's homepage, there can be only one
diff --git a/domain/src/main/java/demoapp/dom/homepage/DemoHomePage-welcome.adoc b/domain/src/main/java/demoapp/dom/homepage/ReferenceHomePage-welcome.adoc
similarity index 96%
rename from domain/src/main/java/demoapp/dom/homepage/DemoHomePage-welcome.adoc
rename to domain/src/main/java/demoapp/dom/homepage/ReferenceHomePage-welcome.adoc
index 5d7d1b4..cdcc8bd 100644
--- a/domain/src/main/java/demoapp/dom/homepage/DemoHomePage-welcome.adoc
+++ b/domain/src/main/java/demoapp/dom/homepage/ReferenceHomePage-welcome.adoc
@@ -4,7 +4,7 @@ This is an link:https://causeway.apache.org[Apache Causeway] application to demo
On the left hand side of each page you'll find a working example of the feature, while on the right hand side you'll find a description of the feature with annotated code examples.
-Be aware, the demo app uses an in-memory database, so any changes made will be lost when the app is stopped.
+Be aware, this reference app uses an in-memory database, so any changes made will be lost when the app is stopped.
== Page Layout
diff --git a/domain/src/main/java/demoapp/dom/homepage/DemoHomePage.java b/domain/src/main/java/demoapp/dom/homepage/ReferenceHomePage.java
similarity index 98%
rename from domain/src/main/java/demoapp/dom/homepage/DemoHomePage.java
rename to domain/src/main/java/demoapp/dom/homepage/ReferenceHomePage.java
index 3d2baa4..0e5d992 100644
--- a/domain/src/main/java/demoapp/dom/homepage/DemoHomePage.java
+++ b/domain/src/main/java/demoapp/dom/homepage/ReferenceHomePage.java
@@ -35,7 +35,7 @@ import demoapp.dom._infra.resources.AsciiDocReaderService;
@Named("demo.Homepage")
@DomainObject(nature=Nature.VIEW_MODEL)
@HomePage // <.>
-public class DemoHomePage
+public class ReferenceHomePage
implements HasAsciiDocDescription { // <.>
@ObjectSupport public String title() { // <.>
diff --git a/domain/src/main/java/demoapp/dom/homepage/DemoHomePage.layout.xml b/domain/src/main/java/demoapp/dom/homepage/ReferenceHomePage.layout.xml
similarity index 100%
rename from domain/src/main/java/demoapp/dom/homepage/DemoHomePage.layout.xml
rename to domain/src/main/java/demoapp/dom/homepage/ReferenceHomePage.layout.xml
diff --git a/testing/jpa/src/test/java/demoapp/testing/jpa/SpinUpReferenceJpaTest.verify.approved.yaml b/testing/jpa/src/test/java/demoapp/testing/jpa/SpinUpReferenceJpaTest.verify.approved.yaml
index 521ad31..e4076c0 100644
--- a/testing/jpa/src/test/java/demoapp/testing/jpa/SpinUpReferenceJpaTest.verify.approved.yaml
+++ b/testing/jpa/src/test/java/demoapp/testing/jpa/SpinUpReferenceJpaTest.verify.approved.yaml
@@ -98,7 +98,7 @@ ObjectSpecifications:
- demo.Tab(demoapp.dom.featured.layout.tabs.TabDemo)
- demo.DemoItem(demoapp.dom.featured.layout.tooltip.DemoItem)
- demo.Tooltip(demoapp.dom.featured.layout.tooltip.TooltipPage)
- - demo.Homepage(demoapp.dom.homepage.DemoHomePage)
+ - demo.Homepage(demoapp.dom.homepage.ReferenceHomePage)
- demo.DependentArgsDemoItem(demoapp.dom.progmodel.actions.TvCharacter)
- demo.ActionAutoComplete(demoapp.dom.progmodel.actions.autocomplete.ActionAutoCompletePage)
- demo.BulkActionPage(demoapp.dom.progmodel.actions.bulk.BulkActionPage)