File tree 6 files changed +18
-5
lines changed
main/java/org/eclipse/jetty/spring
test/resources/org/eclipse/jetty/spring
6 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 9
9
<name >Example :: Jetty Spring</name >
10
10
11
11
<properties >
12
- <spring-version >3.2.18.RELEASE </spring-version >
12
+ <spring-version >5.3.18 </spring-version >
13
13
<dependencies >target/dependencies</dependencies >
14
14
<bundle-symbolic-name >${project.groupId} .spring</bundle-symbolic-name >
15
15
<jacoco .skip>true</jacoco .skip>
Original file line number Diff line number Diff line change 23
23
24
24
/**
25
25
* Runs Jetty from a Spring configuration file passed as argument.
26
+ * @deprecated Has been removed in Jetty 10+
26
27
*/
28
+ @ Deprecated
27
29
public class Main
28
30
{
29
31
public static void main (String [] args ) throws Exception
30
32
{
33
+ System .err .println ("DEPRECATION WARNING - The `jetty-spring` project will see no further updates, and has been fully removed from Jetty 10 onwards" );
31
34
Resource config = Resource .newResource (args .length == 1 ? args [0 ] : "etc/jetty-spring.xml" );
32
35
XmlConfiguration .main (config .getFile ().getAbsolutePath ());
33
36
}
Original file line number Diff line number Diff line change 58
58
* <p>
59
59
* This processor is returned by the {@link SpringConfigurationProcessorFactory} for any XML document whos first
60
60
* element is "beans". The factory is discovered by a {@link ServiceLoader} for {@link ConfigurationProcessorFactory}.
61
+ * @deprecated Has been removed in Jetty 10+
61
62
*/
63
+ @ Deprecated
62
64
public class SpringConfigurationProcessor implements ConfigurationProcessor
63
65
{
64
66
private static final Logger LOG = Log .getLogger (SpringConfigurationProcessor .class );
@@ -67,6 +69,11 @@ public class SpringConfigurationProcessor implements ConfigurationProcessor
67
69
private DefaultListableBeanFactory _beanFactory ;
68
70
private String _main ;
69
71
72
+ public SpringConfigurationProcessor ()
73
+ {
74
+ LOG .warn ("DEPRECATION WARNING - The `jetty-spring` project will see no further updates, and has been fully removed from Jetty 10 onwards" );
75
+ }
76
+
70
77
@ Override
71
78
public void init (URL url , XmlParser .Node root , XmlConfiguration configuration )
72
79
{
@@ -141,7 +148,7 @@ private void doConfigure()
141
148
{
142
149
LOG .debug ("{} - {}" , bean , Arrays .asList (_beanFactory .getAliases (bean )));
143
150
String [] aliases = _beanFactory .getAliases (bean );
144
- if ("Main" .equals (bean ) || aliases != null && Arrays .asList (aliases ).contains ("Main" ))
151
+ if ("Main" .equals (bean ) || Arrays .asList (aliases ).contains ("Main" ))
145
152
{
146
153
_main = bean ;
147
154
break ;
Original file line number Diff line number Diff line change 30
30
*
31
31
* @see SpringConfigurationProcessor
32
32
* @see XmlConfiguration
33
+ * @deprecated Has been removed in Jetty 10+
33
34
*/
35
+ @ Deprecated
34
36
public class SpringConfigurationProcessorFactory implements ConfigurationProcessorFactory
35
37
{
36
38
@ Override
Original file line number Diff line number Diff line change 17
17
//
18
18
19
19
/**
20
- * Jetty Spring : Spring IoC Configuration for Jetty
20
+ * Jetty Spring : (Deprecated) Spring IoC Configuration for Jetty
21
+ * @deprecated
21
22
*/
22
23
package org .eclipse .jetty .spring ;
23
24
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<beans xmlns =" http://www.springframework.org/schema/beans"
3
3
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
- xsi : schemaLocation =" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0 .xsd" >
4
+ xsi : schemaLocation =" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3 .xsd" >
5
5
6
6
<!-- define the singleton properties Map, filled in with XmlConfiguration.getProperties() -->
7
7
<bean id =" properties" class =" java.util.Map" />
8
8
9
9
<!-- extract a value from the property map -->
10
10
<bean id =" testProperty" class =" org.springframework.beans.factory.config.MethodInvokingFactoryBean" >
11
- <property name =" targetObject" >< ref local =" properties" /></ property >
11
+ <property name =" targetObject" ref =" properties" />
12
12
<property name =" targetMethod" value =" get" />
13
13
<property name =" arguments" ><list ><value >test</value ></list ></property >
14
14
</bean >
You can’t perform that action at this time.
0 commit comments