Skip to content

java: spring servlet support without spring-web or spring-boot

Notifications You must be signed in to change notification settings

darthShana/connect-java-servlet-spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect Servlet Spring

The code in this artifact is designed to be used specifically with Spring versions 4.3 and above.

Module

A module is analogous to a Guice module, and is designed to consist of the registration of a number of beans. Spring generally doesn’t care about which interfaces a bean is tied to, once registered it will find the bean with all of the interfaces it uses.

Spring has this "concept" by simply allowing a Module to have an @Import statement that holds multiple beans to register (and even cascading registration) so the concept is generally of limited usefulness.

However, pair this with the gen-code-scanner plugin, this allows scan based wiring at runtime, which is an enormous performance boost over runtime scanning.

The reason for this is covered more in the Connect CD principles documentation.

ServletModule

This allows a number of different ways of registering servlets. The JerseyModule in connect-java-servlet-spring-jersery descends from it. It allows registering of servlets through a simple fluid syntax in a Consumer<Definition> callback or detection of @WebServlet or @WebFilter annotations.

About

java: spring servlet support without spring-web or spring-boot

Resources

Stars

Watchers

Forks

Packages

No packages published