Skip to content

danveloper/gdi-ratpack-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GDI/Ratpack Example

Introduction

This example demonstrates how to use GDI with Ratpack to create a really lightweight, flexible, awesome webservice in Groovy with powerful dependency injection.

How it works

  • Services are injected into the com.danveloper.gdi.examples.application.ServiceContainer class using the static injected keyword (see GDI for more details).
  • In the app.groovy script for Ratpack, a new instance of ServiceContainer is created to access the application's services.
  • This example demonstrates how to inject, and gain access to, a simple APIService from the Ratpack script's context.

License

By me, Daniel Woods. Free-for-all. Contact me with any help or suggestions. g(daniel.p.woods@gmail.com) && t(@danveloper)

About

Using GDI inside Ratpack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published