You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by th...@apache.org on 2021/11/17 22:25:51 UTC
[tapestry-5] branch rest updated: TAP5-2696: fixing misplaced code in tapestry-openapi-viewer
This is an automated email from the ASF dual-hosted git repository.
thiagohp pushed a commit to branch rest
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
The following commit(s) were added to refs/heads/rest by this push:
new 68980fe TAP5-2696: fixing misplaced code in tapestry-openapi-viewer
68980fe is described below
commit 68980fed315f8d69870a9ecc4e123e17fe2d2e65
Author: Thiago H. de Paula Figueiredo <th...@arsmachina.com.br>
AuthorDate: Wed Nov 17 19:25:42 2021 -0300
TAP5-2696: fixing misplaced code in tapestry-openapi-viewer
---
.../modules/TapestryOpenApiViewerModule.java | 8 --------
.../tapestry5/tapestryopenapiviewer/test/services/AppModule.java | 9 +++++++++
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/tapestry-openapi-viewer/src/main/java/org/apache/tapestry5/tapestryopenapiviewer/modules/TapestryOpenApiViewerModule.java b/tapestry-openapi-viewer/src/main/java/org/apache/tapestry5/tapestryopenapiviewer/modules/TapestryOpenApiViewerModule.java
index 95e3b37..2444184 100644
--- a/tapestry-openapi-viewer/src/main/java/org/apache/tapestry5/tapestryopenapiviewer/modules/TapestryOpenApiViewerModule.java
+++ b/tapestry-openapi-viewer/src/main/java/org/apache/tapestry5/tapestryopenapiviewer/modules/TapestryOpenApiViewerModule.java
@@ -15,10 +15,7 @@
package org.apache.tapestry5.tapestryopenapiviewer.modules;
import org.apache.tapestry5.commons.Configuration;
-import org.apache.tapestry5.integration.app1.services.AppModule;
-import org.apache.tapestry5.ioc.annotations.Contribute;
import org.apache.tapestry5.services.LibraryMapping;
-import org.apache.tapestry5.services.rest.MappedEntityManager;
/**
* Defines services and definitions for the Tapestry OpenAPI viewer.
@@ -30,9 +27,4 @@ public class TapestryOpenApiViewerModule
configuration.add(new LibraryMapping("openapiviewer", "org.apache.tapestry5.tapestryopenapiviewer"));
}
- @Contribute(MappedEntityManager.class)
- public static void provideMappedEntities(Configuration<String> configuration)
- {
- AppModule.provideMappedEntities(configuration);
- }
}
diff --git a/tapestry-openapi-viewer/src/test/java/org/apache/tapestry5/tapestryopenapiviewer/test/services/AppModule.java b/tapestry-openapi-viewer/src/test/java/org/apache/tapestry5/tapestryopenapiviewer/test/services/AppModule.java
index 1b8e46d..28115a9 100644
--- a/tapestry-openapi-viewer/src/test/java/org/apache/tapestry5/tapestryopenapiviewer/test/services/AppModule.java
+++ b/tapestry-openapi-viewer/src/test/java/org/apache/tapestry5/tapestryopenapiviewer/test/services/AppModule.java
@@ -14,7 +14,9 @@ package org.apache.tapestry5.tapestryopenapiviewer.test.services;
import org.apache.tapestry5.SymbolConstants;
import org.apache.tapestry5.commons.Configuration;
import org.apache.tapestry5.commons.MappedConfiguration;
+import org.apache.tapestry5.ioc.annotations.Contribute;
import org.apache.tapestry5.services.LibraryMapping;
+import org.apache.tapestry5.services.rest.MappedEntityManager;
public class AppModule
{
@@ -28,4 +30,11 @@ public class AppModule
configuration.add(SymbolConstants.PUBLISH_OPENAPI_DEFINITON, true);
configuration.add(SymbolConstants.PRODUCTION_MODE, false);
}
+
+ @Contribute(MappedEntityManager.class)
+ public static void provideMappedEntities(Configuration<String> configuration)
+ {
+ org.apache.tapestry5.integration.app1.services.AppModule.provideMappedEntities(configuration);
+ }
+
}