Skip to content

Commit

Permalink
Fixes #3813 - Remove SingleServlet (#3817)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnriem authored Jul 17, 2024
1 parent ba12659 commit cf87bf5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ public PiranhaConfiguration getConfiguration() {
}

/**
* {
*
* @return the web application}
* {@return the web application}
*/
public WebApplication getWebApplication() {
return webApplication;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,12 @@
*/
package cloud.piranha.single;

import cloud.piranha.core.api.WebApplication;
import cloud.piranha.core.api.WebApplicationExtension;

/**
* The "Solo" WebApplicationExtension.
* The "Single" WebApplicationExtension.
*
* @author Manfred Riem ([email protected])
*/
public class SingleExtension implements WebApplicationExtension {

@Override
public void configure(WebApplication webApplication) {
webApplication.addServlet("Solo", SingleServlet.class);
webApplication.addServletMapping("Solo", "/*");
}
}
4 changes: 2 additions & 2 deletions single/src/main/java/cloud/piranha/single/SinglePiranha.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@
import java.lang.reflect.InvocationTargetException;

/**
* The Solo version of Piranha.
* The Single version of Piranha.
*
* <p>
* This version of Piranha supports the following:
* </p>
* <ol>
* <li>Enabling use of Project CRaC</li>
* <li>Enabling Project CRaC</li>
* <li>Running with Java modules</li>
* <li>Exiting on stop</li>
* <li>Exposing a HTTP endpoint</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import static java.lang.System.Logger.Level.WARNING;

/**
* The Solo version of PiranhaBuilder.
* The Single version of PiranhaBuilder.
*
* @author Manfred Riem ([email protected])
*/
Expand All @@ -48,7 +48,7 @@ public class SinglePiranhaBuilder implements PiranhaBuilder<SinglePiranha> {
/**
* Stores the SinglePiranha instance.
*/
private SinglePiranha piranha;
private final SinglePiranha piranha;

/**
* Stores the verbose flag.
Expand Down
38 changes: 0 additions & 38 deletions single/src/main/java/cloud/piranha/single/SingleServlet.java

This file was deleted.

0 comments on commit cf87bf5

Please sign in to comment.