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.
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