Skip to content

add ratpack-spring-boot module - #433

Merged
ldaley merged 1 commit into
ratpack:masterfrom
lhotari:ratpack-spring-boot-pr
Sep 4, 2014
Merged

ldaley merged 1 commit into
ratpack:masterfrom
lhotari:ratpack-spring-boot-pr

Conversation

@lhotari

@lhotari lhotari commented Sep 2, 2014

Copy link
Copy Markdown
Contributor

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.

@ldaley

ldaley commented Sep 2, 2014

Copy link
Copy Markdown
Member

Awesome @lhotari. About to take a look.

I noticed that there are some checkstyle issues.

@ldaley ldaley added this to the release-0.9.9 milestone Sep 2, 2014
@ldaley ldaley self-assigned this Sep 2, 2014
@lhotari
lhotari force-pushed the ratpack-spring-boot-pr branch from b11ab4f to 64dbbea Compare September 3, 2014 15:37
@lhotari

lhotari commented Sep 3, 2014

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants