Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » Riena and Spring
Riena and Spring [message #585865] Wed, 16 June 2010 00:13 Go to next message
stuart donald is currently offline stuart donaldFriend
Messages: 12
Registered: June 2010
Junior Member
Hi

I am evaluating using Riena (looking at 1.2) as an alternative to out existing RCP project. We only want to use the UI components of Riena, where we want to make use of the Navigation, MVC, and binding etc. I can get a demo application up and running no problem, but what I am trying to figure out now is how we can use Spring IOC to instantiate the controllers. What is the best way to go about doing that? In our RCP app we use a library that implements IExecutableExtensionFactory ( http://martinlippert.blogspot.com/2008/05/dependency-injecti on-for-extensions.html) to allow the use of Spring IOC to create views. Reading the Riena docs it looks like I should be able to inject this extension into the framework somehow, but I cant figure it out. Does anybody have any ideas?

Cheers

Stu.
Re: Riena and Spring [message #585877 is a reply to message #585865] Thu, 17 June 2010 11:13 Go to previous messageGo to next message
Christian Campo is currently offline Christian CampoFriend
Messages: 597
Registered: July 2009
Senior Member
Hi Stu,

Looking at the page from martin, I think that should be doable. I also highly recommend that you use Riena 2.0 but it
should work either way. We use the ExtensionRegistry to create the controller and the view. So instead of referencing
the client directly you could reference the controller through Spring using
org.eclipse.springframework.util.SpringExtensionFactory:myco ntroller

and in the RCP View you reference then org.eclipse.springframework.util.SpringExtensionFactory:myvi ew

Have you tried that before ? Seems such a straight forward approach that I suspect that you tried it and it didnt work.

Hope that helps. In any event I'd like to hear if that works or not

thanks
christian


Am 16.06.10 02:13, schrieb stuart.donald@ibboost.com:
> Hi
>
> I am evaluating using Riena (looking at 1.2) as an alternative to out
> existing RCP project. We only want to use the UI components of Riena,
> where we want to make use of the Navigation, MVC, and binding etc. I can
> get a demo application up and running no problem, but what I am trying
> to figure out now is how we can use Spring IOC to instantiate the
> controllers. What is the best way to go about doing that? In our RCP app
> we use a library that implements IExecutableExtensionFactory
> ( http://martinlippert.blogspot.com/2008/05/dependency-injecti on-for-extensions.html)
> to allow the use of Spring IOC to create views. Reading the Riena docs
> it looks like I should be able to inject this extension into the
> framework somehow, but I cant figure it out. Does anybody have any ideas?
>
> Cheers
>
> Stu.
Re: Riena and Spring [message #586083 is a reply to message #585865] Mon, 28 June 2010 00:31 Go to previous message
stuart donald is currently offline stuart donaldFriend
Messages: 12
Registered: June 2010
Junior Member
For anybody interested this has been logged here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=317540
Previous Topic:Riena and Spring
Next Topic:Toolbar visible function
Goto Forum:
  


Current Time: Wed Apr 24 21:25:58 GMT 2024

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

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

Back to the top