diff --git a/integration-tests/tomee/src/main/java/io/roastedroot/proxywasm/jaxrs/it/App.java b/integration-tests/tomee/src/main/java/io/roastedroot/proxywasm/jaxrs/it/App.java index 6099331..0a22644 100644 --- a/integration-tests/tomee/src/main/java/io/roastedroot/proxywasm/jaxrs/it/App.java +++ b/integration-tests/tomee/src/main/java/io/roastedroot/proxywasm/jaxrs/it/App.java @@ -13,10 +13,19 @@ @ApplicationScoped public class App { + /** + * Default constructor. + */ + public App() { + // Default constructor for CDI + } + private static final Gson gson = new Gson(); /** * Configures the headerTests PluginFactory. + * + * @return a configured PluginFactory for header testing */ @Produces public PluginFactory headerTests() { diff --git a/integration-tests/tomee/src/main/java/io/roastedroot/proxywasm/jaxrs/it/Resources.java b/integration-tests/tomee/src/main/java/io/roastedroot/proxywasm/jaxrs/it/Resources.java index 2fe2f51..108dc52 100644 --- a/integration-tests/tomee/src/main/java/io/roastedroot/proxywasm/jaxrs/it/Resources.java +++ b/integration-tests/tomee/src/main/java/io/roastedroot/proxywasm/jaxrs/it/Resources.java @@ -11,6 +11,13 @@ @Path("/") public class Resources { + /** + * Default constructor. + */ + public Resources() { + // Default constructor for JAX-RS + } + /** * Endpoint for testing header manipulation with a shared Wasm plugin instance. * diff --git a/integration-tests/tomee/src/main/webapp/WEB-INF/beans.xml b/integration-tests/tomee/src/main/webapp/WEB-INF/beans.xml index bf9ad39..4b847c6 100644 --- a/integration-tests/tomee/src/main/webapp/WEB-INF/beans.xml +++ b/integration-tests/tomee/src/main/webapp/WEB-INF/beans.xml @@ -3,4 +3,4 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/beans_4_0.xsd" - version="4.0" bean-discovery-mode="all"/> \ No newline at end of file + version="4.0" bean-discovery-mode="annotated"/> \ No newline at end of file diff --git a/pom.xml b/pom.xml index 1079da1..e9f38f0 100644 --- a/pom.xml +++ b/pom.xml @@ -256,6 +256,29 @@ true + + + org.apache.maven.plugins + maven-javadoc-plugin + ${maven-javadoc-plugin.version} + + all + true + 11 + ${maven.compiler.release} + + **/internal/** + + + + + attach-javadocs + + jar + + + + @@ -317,31 +340,6 @@ release - - - - org.apache.maven.plugins - maven-javadoc-plugin - ${maven-javadoc-plugin.version} - - all - 11 - ${maven.compiler.release} - - **/internal/** - - - - - attach-javadocs - - jar - - - - - - org.apache.maven.plugins diff --git a/proxy-wasm-java-host/src/main/java/io/roastedroot/proxywasm/PluginFactory.java b/proxy-wasm-java-host/src/main/java/io/roastedroot/proxywasm/PluginFactory.java index 06ecfd3..fd241df 100644 --- a/proxy-wasm-java-host/src/main/java/io/roastedroot/proxywasm/PluginFactory.java +++ b/proxy-wasm-java-host/src/main/java/io/roastedroot/proxywasm/PluginFactory.java @@ -26,7 +26,7 @@ public interface PluginFactory { /** * Creates and returns a new {@link Plugin} instance. * Implementations are responsible for all necessary setup, including potentially - * loading the WASM module and configuring it using {@link Plugin#builder(com.dylibso.chicory.wasm.WasmModule)}. + * loading the WASM module and configuring it using {@link PluginFactory#builder(com.dylibso.chicory.wasm.WasmModule)}. * * @return A newly created {@link Plugin} instance. * @throws Exception If any error occurs during plugin creation (e.g., file loading, WASM instantiation, diff --git a/proxy-wasm-java-host/src/main/java/io/roastedroot/proxywasm/StartException.java b/proxy-wasm-java-host/src/main/java/io/roastedroot/proxywasm/StartException.java index 77b8315..e77761e 100644 --- a/proxy-wasm-java-host/src/main/java/io/roastedroot/proxywasm/StartException.java +++ b/proxy-wasm-java-host/src/main/java/io/roastedroot/proxywasm/StartException.java @@ -3,7 +3,7 @@ /** * Exception thrown when an error occurs during the initialization or startup phase of a Proxy-WASM plugin. * - *

This typically happens during the execution of the {@link Plugin.Builder#build()} method, + *

This typically happens during the execution of the {@link PluginFactory.Builder#build()} method, * encompassing issues such as WASM module instantiation failures, errors within the WASM * {@code _start} function, or failures during the initial {@code proxy_on_vm_start} or * {@code proxy_on_configure} calls within the plugin. diff --git a/proxy-wasm-jaxrs/src/main/resources/META-INF/beans.xml b/proxy-wasm-jaxrs/src/main/resources/META-INF/beans.xml index e1dbba5..6cb702e 100644 --- a/proxy-wasm-jaxrs/src/main/resources/META-INF/beans.xml +++ b/proxy-wasm-jaxrs/src/main/resources/META-INF/beans.xml @@ -2,7 +2,7 @@ + version="4.0" bean-discovery-mode="annotated"> io.roastedroot.proxywasm.jaxrs.cdi.ServerAdaptor