GroovyBeanBuilder Examples
Shell Java Groovy
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
gradle/wrapper
src/test
.gitignore
README.md
build.gradle
gradlew
gradlew.bat

README.md

Groovy Beans

This project contains some simple examples of creating a Spring Application Context using the Groovy Bean Builder from Java, exposed via the GenericGroovyApplicationContext introduced to the Spring framework in version 4.0.

Running the examples

All the examples are run from a JUnit test, GroovyBeanBuilderTests. Each test initializes and verifies one of the Application Contexts found in the config directory.

This may be run in gradle:

 $gradle test

Or from Intellij or Eclipse, e.g. run one of these gradle tasks before importing the project.

$gradle idea

or

$gradle eclipse

Note: When running from Intellij, I have found it necessary to exclude groovy from the resource path:

  File->Preferences->Compiler

then add ;!?*.groovy to Resource patterns