Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
servers - renamed JettyWebServer to Jetty7WebServer, same for module …
…and properties
- Loading branch information
Showing
7 changed files
with
47 additions
and
43 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
restx-server-jetty7/src/main/java/restx/server/Jetty7ServerModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package restx.server; | ||
|
||
import restx.factory.Module; | ||
import restx.factory.Provides; | ||
|
||
import javax.inject.Named; | ||
|
||
/** | ||
* @author fcamblor | ||
*/ | ||
@Module(priority = 1000) | ||
public class Jetty7ServerModule { | ||
@Provides | ||
@Named("restx.server.jetty7.webxml.default.location") | ||
public String restxServerJettyWebXmlDefaultLocation(@Named("restx.server.jetty7.appbase.default.location") String appBase) { | ||
return appBase+"/WEB-INF/web.xml"; | ||
} | ||
|
||
|
||
@Provides | ||
@Named("restx.server.jetty7.appbase.default.location") | ||
public String restxServerJettyAppBaseDefaultLocation() { | ||
return "src/main/webapp"; | ||
} | ||
|
||
@Provides | ||
@Named("restx.server.jetty7") | ||
public WebServerSupplier jettyWebServerSupplier( | ||
@Named("restx.server.jetty7.appbase.default.location") String appBase, | ||
@Named("restx.server.jetty7.webxml.default.location") String webxml){ | ||
return Jetty7WebServer.jettyWebServerSupplier(webxml, appBase); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
restx-server-jetty7/src/main/java/restx/server/JettyServerModule.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters