Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
nfs4j
Commits
a3bfc771
Commit
a3bfc771
authored
Jun 03, 2010
by
Tigran Mkrtchyan
☕
Browse files
rpc: switch to 3.0.2 version of spring
moved from BeanFactory to ApplicationContext
parent
2e941e22
Changes
2
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
a3bfc771
...
...
@@ -204,8 +204,8 @@
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring
</artifactId>
<version>
2.5.6
</version>
<artifactId>
spring
-context
</artifactId>
<version>
3.0.2.RELEASE
</version>
</dependency>
<dependency>
<groupId>
junit
</groupId>
...
...
src/org/dcache/xdr/SpringRunner.java
View file @
a3bfc771
...
...
@@ -19,9 +19,8 @@ package org.dcache.xdr;
import
java.io.FileNotFoundException
;
import
java.io.IOException
;
import
org.springframework.beans.factory.BeanFactory
;
import
org.springframework.beans.factory.xml.XmlBeanFactory
;
import
org.springframework.core.io.FileSystemResource
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.support.FileSystemXmlApplicationContext
;
public
class
SpringRunner
{
...
...
@@ -34,8 +33,9 @@ public class SpringRunner {
System
.
err
.
println
(
"Usage: SpringRunner <config>"
);
System
.
exit
(
1
);
}
BeanFactory
factory
=
new
XmlBeanFactory
(
new
FileSystemResource
(
args
[
0
]));
OncRpcSvc
service
=
(
OncRpcSvc
)
factory
.
getBean
(
"oncrpcsvc"
);
ApplicationContext
context
=
new
FileSystemXmlApplicationContext
(
args
[
0
]);
OncRpcSvc
service
=
(
OncRpcSvc
)
context
.
getBean
(
"oncrpcsvc"
);
service
.
start
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment