From 74510bd84497e7500e0495c37384d269525fb146 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Sat, 28 Jan 2017 10:55:29 +0000 Subject: [PATCH] Make GroovyBeanDefinitionSource accessible to the CLI again It was made package-private in 31b0e817 but it needs to be protected due to its use in the CLI's GroovyBeansTransformation. --- .../java/org/springframework/boot/BeanDefinitionLoader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot/src/main/java/org/springframework/boot/BeanDefinitionLoader.java b/spring-boot/src/main/java/org/springframework/boot/BeanDefinitionLoader.java index 4546b76a50..be3149894b 100644 --- a/spring-boot/src/main/java/org/springframework/boot/BeanDefinitionLoader.java +++ b/spring-boot/src/main/java/org/springframework/boot/BeanDefinitionLoader.java @@ -326,7 +326,8 @@ class BeanDefinitionLoader { /** * Source for Bean definitions defined in Groovy. */ - interface GroovyBeanDefinitionSource { + @FunctionalInterface + protected interface GroovyBeanDefinitionSource { Closure getBeans();