Repository navigation
add ratpack-spring-boot module - #433
Merged
Merged
Conversation
Member
|
Awesome @lhotari. About to take a look. I noticed that there are some checkstyle issues. |
lhotari
force-pushed
the
ratpack-spring-boot-pr
branch
from
September 3, 2014 15:37
b11ab4f to
64dbbea
Compare
Contributor
Author
|
I updated my ratpack-spring-boot-pr branch by force pushing changes. The previous comments are on the original commit: lhotari@b11ab4f . I've added tags to my fork to keep these commits alive. |
lhotari
force-pushed
the
ratpack-spring-boot-pr
branch
from
September 3, 2014 15:48
64dbbea to
2eaefbf
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a SpringBackedRegistry implementation and a simple helper for starting a Spring Boot application embedded in Ratpack. The ratpack.spring.Spring.run method returns a Registry instance that can be passed to the "register" DSL method.
usage example: https://github.com/lhotari/ratpack-gorm-example/blob/dc4ebfafec36976cdc77924d1c9c9da9f6e9fda1/src/ratpack/Ratpack.groovy#L10
Based on discussion in Ratpack Forum: http://forum.ratpack.io/Preparation-of-Spring-Boot-module-for-Ratpack-tp569p587.html , I've now re-implemented SpringBackedRegistry by copying the InjectorBackedRegistry and "porting" that to use Spring and re-using some code from the version of SpringBackedRegistry that is implemented by Dave Syer.
I added tests for SpringBackedRegistry by picking some test methods from the tests of the different Registry implementations that Ratpack already contains.