diff --git a/blueprint/blueprint-spring/pom.xml b/blueprint/blueprint-spring/pom.xml
index 7ce6dcabd9..8a3f2e09b6 100644
--- a/blueprint/blueprint-spring/pom.xml
+++ b/blueprint/blueprint-spring/pom.xml
@@ -64,6 +64,7 @@
+ 5.3.39
@@ -119,13 +120,13 @@
org.springframework
spring-context
- 4.2.2.RELEASE
+ ${spring.version}
provided
org.springframework
spring-beans
- 4.2.2.RELEASE
+ ${spring.version}
provided
@@ -178,19 +179,26 @@
org.springframework
spring-tx
- 4.2.2.RELEASE
+ ${spring.version}
test
org.springframework
spring-aop
- 4.2.2.RELEASE
+ ${spring.version}
test
+
+ maven-compiler-plugin
+
+ 1.8
+
+
+
org.apache.aries.versioning
org.apache.aries.versioning.plugin
diff --git a/blueprint/blueprint-spring/src/main/java/org/apache/aries/blueprint/spring/BlueprintBeanFactory.java b/blueprint/blueprint-spring/src/main/java/org/apache/aries/blueprint/spring/BlueprintBeanFactory.java
index 922e182999..aed999ace9 100644
--- a/blueprint/blueprint-spring/src/main/java/org/apache/aries/blueprint/spring/BlueprintBeanFactory.java
+++ b/blueprint/blueprint-spring/src/main/java/org/apache/aries/blueprint/spring/BlueprintBeanFactory.java
@@ -37,6 +37,7 @@
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanNotOfRequiredTypeException;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
+import org.springframework.beans.factory.ObjectProvider;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.core.ResolvableType;
@@ -231,6 +232,16 @@ public T getBean(Class requiredType, Object... args) throws BeansExceptio
throw new UnsupportedOperationException();
}
+ @Override
+ public ObjectProvider getBeanProvider(Class requiredType) {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public ObjectProvider getBeanProvider(ResolvableType requiredType) {
+ throw new UnsupportedOperationException();
+ }
+
@Override
public boolean containsBean(String name) {
return container.getComponentIds().contains(name);
@@ -261,6 +272,11 @@ public Class> getType(String name) throws NoSuchBeanDefinitionException {
throw new UnsupportedOperationException();
}
+ @Override
+ public Class> getType(String name, boolean allowFactoryBeanInit) throws NoSuchBeanDefinitionException {
+ throw new UnsupportedOperationException();
+ }
+
@Override
public String[] getAliases(String name) {
throw new UnsupportedOperationException();
diff --git a/blueprint/blueprint-spring/src/main/java/org/apache/aries/blueprint/spring/BlueprintNamespaceHandler.java b/blueprint/blueprint-spring/src/main/java/org/apache/aries/blueprint/spring/BlueprintNamespaceHandler.java
index deee304e19..2547c5307c 100644
--- a/blueprint/blueprint-spring/src/main/java/org/apache/aries/blueprint/spring/BlueprintNamespaceHandler.java
+++ b/blueprint/blueprint-spring/src/main/java/org/apache/aries/blueprint/spring/BlueprintNamespaceHandler.java
@@ -147,7 +147,7 @@ private org.springframework.beans.factory.xml.ParserContext getOrCreateParserCon
if (applicationContext == null) {
applicationContext = new SpringApplicationContext(container);
registry.registerComponentDefinition(createPassThrough(parserContext,
- SPRING_APPLICATION_CONTEXT_ID, applicationContext, "destroy"
+ SPRING_APPLICATION_CONTEXT_ID, applicationContext, "close"
));
}
// Create registry