Skip to content

luistrigueiros/groovy-embedding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an example exploring ways to integrate groovy with java code, with a view to enable quick protoyping by using groovy features and reloading of changes on the fly. The idea is to run the app and to prototype in groovy with the app running with the option to turn the running code to java at the end.

To run type gradle bootRun

To type enter: curl http://localhost:8080/greeting

You with get the Hello world greeting:

Hello, world!

From the "hello.featurex.Dependency.message", now if you edit the message and change it to Hello, world2! And do
curl http://localhost:8080/greeting

You will get back: Hello, world2!

No restart required!

Editing and changing the groovy ReloadTest will return a diferent response evrey time

About

Sample test of groovy embedding using GroovyScriptEngine with reloadable capability

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published