Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to Incorporate Spring IOC concept in Eclipse RCP(Eclipse RCP Spring Dependency Injection)
How to Incorporate Spring IOC concept in Eclipse RCP [message #922015] Mon, 24 September 2012 16:50 Go to next message
raghav Missing name is currently offline raghav Missing nameFriend
Messages: 18
Registered: May 2011
Junior Member

Hi RCP Developers,

I have developed an Eclipse RCP Application. I would like to improve my code where some classes are tightly coupled and dependent on others. I would like to implement the very popular Spring DI(Dependency Injection) to make my code as loosely-coupled.

Any sample code to go further or any Examples.

Update:

As a workaround I tried following steps
1) creating a project as Plugin from existing archives
2) Added this project as a dependency to my actual project.
3) I have place spring applicationContext.xml in src folder
When I run My RCP application I'm facing FileNotFoundException. My application cannot find applicationContext.xml.

Where exactly should I place my applicationContext.xml ?

[Updated on: Tue, 25 September 2012 09:05]

Report message to a moderator

Re: How to Incorporate Spring IOC concept in Eclipse RCP [message #1662661 is a reply to message #922015] Tue, 10 March 2015 04:42 Go to previous messageGo to next message
Eclipse Learner is currently offline Eclipse LearnerFriend
Messages: 2
Registered: March 2015
Junior Member
Hi Raghav, Have you got any update on this ? if yes, please share. I am also facing the same issue!!
Re: How to Incorporate Spring IOC concept in Eclipse RCP [message #1693671 is a reply to message #922015] Mon, 27 April 2015 11:37 Go to previous message
Jayesh Patel is currently offline Jayesh PatelFriend
Messages: 1
Registered: April 2015
Junior Member
just use this

private static ApplicationContext context = new ClassPathXmlApplicationContext("classpath*:beans.xml");
Previous Topic:How to force an RCP app to use Java 8?
Next Topic:Enabling Navigator view and Project Explorer in my IDE
Goto Forum:
  


Current Time: Mon May 04 07:05:42 GMT 2015

Powered by FUDForum. Page generated in 0.01884 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software