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

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


The following commit(s) were added to refs/heads/ISIS-3193 by this push:
     new 20728faca0 ISIS-3193: moves @Action(dependentDefaultsPolicy=...) to 
@Parameter(dependentDefaultsPolicy=...) (2)
20728faca0 is described below

commit 20728faca041d163c5bbaee5cde133faf81ac2e8
Author: Dan Haywood <d...@haywood-associates.co.uk>
AuthorDate: Tue Aug 30 10:42:05 2022 +0100

    ISIS-3193: moves @Action(dependentDefaultsPolicy=...) to 
@Parameter(dependentDefaultsPolicy=...) (2)
---
 .../src/main/java/org/apache/isis/applib/annotation/Action.java   | 8 --------
 .../param/parameter/depdef/ParameterDependentDefaultsFacet.java   | 2 +-
 .../isis/core/metamodel/spec/feature/ObjectActionParameter.java   | 2 +-
 3 files changed, 2 insertions(+), 10 deletions(-)

diff --git 
a/api/applib/src/main/java/org/apache/isis/applib/annotation/Action.java 
b/api/applib/src/main/java/org/apache/isis/applib/annotation/Action.java
index bf7774d3f5..ccd9aaec85 100644
--- a/api/applib/src/main/java/org/apache/isis/applib/annotation/Action.java
+++ b/api/applib/src/main/java/org/apache/isis/applib/annotation/Action.java
@@ -230,12 +230,4 @@ public @interface Action {
             default "";
 
 
-    /**
-     * Whether dependent parameters should be reset to their default if an 
earlier parameter changes its
-     * value, or whether instead a parameter value, once changed by the 
end-user, should never be
-     * overwritten even if the end-user changes an earlier parameter value.
-     */
-    DependentDefaultsPolicy dependentDefaultsPolicy()
-            default DependentDefaultsPolicy.AS_CONFIGURED;
-
 }
diff --git 
a/core/metamodel/src/main/java/org/apache/isis/core/metamodel/facets/param/parameter/depdef/ParameterDependentDefaultsFacet.java
 
b/core/metamodel/src/main/java/org/apache/isis/core/metamodel/facets/param/parameter/depdef/ParameterDependentDefaultsFacet.java
index 0f7df285fc..399f449fec 100644
--- 
a/core/metamodel/src/main/java/org/apache/isis/core/metamodel/facets/param/parameter/depdef/ParameterDependentDefaultsFacet.java
+++ 
b/core/metamodel/src/main/java/org/apache/isis/core/metamodel/facets/param/parameter/depdef/ParameterDependentDefaultsFacet.java
@@ -33,7 +33,7 @@ import org.apache.isis.core.metamodel.facets.SingleValueFacet;
  * Determines how dependent parameter values should be updated,
  * if one of the earlier parameter values is changed.
  * <p>
- * Corresponds to annotating the action method {@link 
Action#dependentDefaultsPolicy()}.
+ * Corresponds to annotating the action method {@link 
Parameter#dependentDefaultsPolicy()}.
  *
  * @since 2.0
  */
diff --git 
a/core/metamodel/src/main/java/org/apache/isis/core/metamodel/spec/feature/ObjectActionParameter.java
 
b/core/metamodel/src/main/java/org/apache/isis/core/metamodel/spec/feature/ObjectActionParameter.java
index 7a44ee35ef..46dc808863 100644
--- 
a/core/metamodel/src/main/java/org/apache/isis/core/metamodel/spec/feature/ObjectActionParameter.java
+++ 
b/core/metamodel/src/main/java/org/apache/isis/core/metamodel/spec/feature/ObjectActionParameter.java
@@ -146,7 +146,7 @@ extends ObjectFeature, CurrentHolder {
      * whenever a parameter this one depends on changes in the UI. Parameters
      * with higher index depend on those with lower index.
      * <p>
-     * Reassessment can be switch off by means of {@link 
Action#dependentDefaultsPolicy()}.
+     * Reassessment can be switch off by means of {@link 
org.apache.isis.applib.annotation.Parameter#dependentDefaultsPolicy()}.
      */
     default void reassessDefault(final ParameterNegotiationModel pendingArgs) {
         val paramIndex = getParameterIndex();

Reply via email to