Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/tomee/src/main/webapp/WEB-INF/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
version="4.0" bean-discovery-mode="annotated"/>
48 changes: 23 additions & 25 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,29 @@
<annotationProcessorPathsUseDepMgmt>true</annotationProcessorPathsUseDepMgmt>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<doclint>all</doclint>
<failOnWarnings>true</failOnWarnings>
<source>11</source>
<release>${maven.compiler.release}</release>
<sourceFileExcludes>
<sourceFileExclude>**/internal/**</sourceFileExclude>
</sourceFileExcludes>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down Expand Up @@ -317,31 +340,6 @@
<profile>
<id>release</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<doclint>all</doclint>
<source>11</source>
<release>${maven.compiler.release}</release>
<sourceFileExcludes>
<sourceFileExclude>**/internal/**</sourceFileExclude>
</sourceFileExcludes>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Exception thrown when an error occurs during the initialization or startup phase of a Proxy-WASM plugin.
*
* <p>This typically happens during the execution of the {@link Plugin.Builder#build()} method,
* <p>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.
Expand Down
2 changes: 1 addition & 1 deletion proxy-wasm-jaxrs/src/main/resources/META-INF/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<beans xmlns="https://jakarta.ee/xml/ns/jakartaee"
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">
version="4.0" bean-discovery-mode="annotated">
<alternatives>
<class>io.roastedroot.proxywasm.jaxrs.cdi.ServerAdaptor</class>
</alternatives>
Expand Down