| Eclipse like extension points in WebApp [message #995630] |
Sun, 30 December 2012 13:26  |
Erik Gollot Messages: 5 Registered: May 2012 |
Junior Member |
|
|
Hey,
In Eclipse, we use OSGI but also the concept of "Extension point" and Extension point implementers.
Did you think of such a mecanism for WebApp ?
I think about a mechanism with a kind of extension point registry where a WebApp can register extension points and other WepApp can register implementers of these extension points. A WebApp can then ask for "implementers" dynamically and then, like in Eclipse, extends itself with known interfaces implementers.
Maybe there is an existing mechanism to do it with Virgo ?
Thanks for any answer
|
|
|
|
| Re: Eclipse like extension points in WebApp [message #997212 is a reply to message #996623] |
Fri, 04 January 2013 08:43   |
Erik Gollot Messages: 5 Registered: May 2012 |
Junior Member |
|
|
Thanks for your answer but it's not what I'm looking for.
Maybe I should not speak about WebApp or maybe I'm not clear enough.
What I'm looking for is a mechanism which help me to make this "scenario" possible.
1- "Inside" WebApp1, I define an extension point EP1
2- In WebApp2 and WebApp3 or "somewhere", I create an implementation of EP1, lets says IMP1 et IMP2
3- When WebApp1 starts, it can look for implementations of EP1 ...IMP1 and IMP2 will be discovered
4- WebApp1 uses IMP1 and IMP2
Extension Points are for the "server side" of my WebApp, not for the UI part.
Thanks if you've any idea.............if I'm clear
[Updated on: Fri, 04 January 2013 08:43] Report message to a moderator
|
|
|
| Re: Eclipse like extension points in WebApp [message #997295 is a reply to message #997212] |
Fri, 04 January 2013 21:24   |
|
Hi
WebApp1 could provide a service interface and WebApp2/3 could import the interface and register their own implementation for it. Once WebApp1 needs an implementation of the interface it can look up registered implementations (e.g. whiteboard pattern). With rankings and properties/filters you can even ensure that only matching implementations are used. There is no need for a specific extension point registry imo as the OSGi service registry already provides all you need to achieve this.
BR
Frieder
[Updated on: Fri, 04 January 2013 21:30] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.05710 seconds