Skip to content

Commit

Permalink
Prepare for 4.0.0 development
Browse files Browse the repository at this point in the history
Since the new API adds a new interface method to MvcContext, we already need
to implement it in this PR.

see: #367
  • Loading branch information
erdlet committed Apr 30, 2023
1 parent baed73a commit 325f95c
Show file tree
Hide file tree
Showing 32 changed files with 42 additions and 34 deletions.
2 changes: 1 addition & 1 deletion archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.eclipse.krazo</groupId>
<artifactId>krazo-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>

<artifactId>krazo-jakartaee-archetype</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.eclipse.krazo</groupId>
<artifactId>krazo-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>krazo-core</artifactId>
<name>Eclipse Krazo Core</name>
Expand Down
8 changes: 8 additions & 0 deletions core/src/main/java/org/eclipse/krazo/MvcContextImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ public class MvcContextImpl implements MvcContext {
@JaxRsContext
private UriInfo uriInfo;

@Inject
private KrazoConfig krazoConfig;

private Locale locale;

private String applicationPath;
Expand Down Expand Up @@ -100,6 +103,11 @@ public Csrf getCsrf() {
return csrf;
}

@Override
public String getHiddenMethodFieldName() {
return krazoConfig.getFormMethodOverwriteField();
}

@Override
public Encoders getEncoders() {
return encoders;
Expand Down
2 changes: 1 addition & 1 deletion documentation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.eclipse.krazo</groupId>
<artifactId>krazo-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>

<artifactId>krazo-documentation</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/application-path/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>application-path</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/book-cdi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>book-cdi</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/book-models/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>book-models</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/conversation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>conversation</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/csrf-property/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>csrf-property</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/def-ext/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>def-ext</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/events/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>events</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/exceptions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>exceptions</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/facelets/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>facelets</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/locale/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>locale</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.eclipse.krazo</groupId>
<artifactId>krazo-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/produces/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>produces</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/redirect/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>redirect</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/redirectScope/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>redirectScope</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/redirectScope2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>redirectScope2</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/redirectScope3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>redirectScope3</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/requestDispatcher/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>requestDispatcher</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/returns/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>returns</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/uri-builder/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>uri-builder</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/validation-i18n/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>validation-i18n</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/validation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>validation</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion examples/view-annotation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.eclipse.krazo.examples</groupId>
<artifactId>krazo-examples-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>view-annotation</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion jersey/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.eclipse.krazo</groupId>
<artifactId>krazo-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>

<artifactId>krazo-jersey</artifactId>
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--
<!--
Copyright (c) 2014-2015 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2018, 2021 Eclipse Krazo committers and contributors
Expand Down Expand Up @@ -26,7 +26,7 @@
<groupId>org.eclipse.krazo</groupId>
<artifactId>krazo-parent</artifactId>
<packaging>pom</packaging>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>

<name>Eclipse Krazo Parent</name>
<description>Eclipse Krazo Parent</description>
Expand All @@ -44,8 +44,8 @@
<maven.compiler.release>11</maven.compiler.release>

<!-- DEPENDENCY PROPERTIES -->
<spec.version>2.1.0</spec.version>
<tck.version>2.1.0</tck.version>
<spec.version>3.0.0.M1</spec.version>
<tck.version>3.0.0.M1</tck.version>

<jersey.version>3.1.0-M8</jersey.version>
<arquillian-bom.version>1.7.0.Alpha12</arquillian-bom.version>
Expand Down
2 changes: 1 addition & 1 deletion resteasy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.eclipse.krazo</groupId>
<artifactId>krazo-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>

<artifactId>krazo-resteasy</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion tck/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.eclipse.krazo</groupId>
<artifactId>krazo-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>

<artifactId>krazo-tck</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion testsuite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.krazo</groupId>
<artifactId>krazo-parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
</parent>

<artifactId>krazo-testsuite</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion testsuite/src/main/resources/forms/views/form.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</head>
<body>
<form id="form" action="forms" method="post">
<input id="hidden-method" name="_method" type="hidden" value="post">
<input id="hidden-method" name="${mvc.hiddenMethodFieldName}" type="hidden" value="post">
<input type="submit" name="submit" value="Click here"/>
</form>
</body>
Expand Down

0 comments on commit 325f95c

Please sign in to comment.