Re: [osgi-dev] Vaadin and New enRoute

2018-07-02 Thread Tim Ward via osgi-dev
It’s a pretty simple type - there’s a blog post here . Fundamentally it lets you get an instance of a service on demand, but you have to release it when you’re done with it. This is good for Vaadin UIs and Views because

Re: [osgi-dev] Vaadin and New enRoute

2018-07-02 Thread Paul F Fraser via osgi-dev
On 2/07/2018 7:52 PM, Tim Ward wrote: Hi Paul, Is the QUIProvider instance being used by Vaadin the same as the instance managed by DS? You cannot simply pass the QUIProvider.class to Vaadin for this to work, you need to be able to register the specific component instance. You can see this

Re: [osgi-dev] Vaadin and New enRoute

2018-07-02 Thread Tim Ward via osgi-dev
Hi Paul, Is the QUIProvider instance being used by Vaadin the same as the instance managed by DS? You cannot simply pass the QUIProvider.class to Vaadin for this to work, you need to be able to register the specific component instance. You can see this happening here

Re: [osgi-dev] Vaadin and New enRoute

2018-07-02 Thread Paul F Fraser via osgi-dev
Thanks to the clues obtained from code in the OpenSecurityController project I am making some serious progress in handling the Vaadin OSGi situation. The one sticking point now is related to creating the instances of PROTOTYPE services. In the code below, when the component is activated the

Re: [osgi-dev] Vaadin and New enRoute

2018-06-29 Thread Tim Ward via osgi-dev
Hi Paul, > The MainUI references all of the ComponentServiceObjects used in the project. > > Could you suggest how this would be handled when new types need to added at > runtime. The Views are just prototype scope services. You could easily use a whiteboard for them and find them based on

Re: [osgi-dev] Vaadin and New enRoute

2018-06-29 Thread Paul F Fraser via osgi-dev
Tim, Thanks for the pointer to OpenSecurityController. It covers many aspects of the service model not well explained anywhere else that I have been able to find. A couple of questions... The MainUI references all of the ComponentServiceObjects used in the project. Could you suggest how

Re: [osgi-dev] Vaadin and New enRoute

2018-06-28 Thread Tim Ward via osgi-dev
Hi Paul, I’m glad to hear that this is working. It does look like it could use a little tidying up though. The overall approach seems similar to that used in the OpenSecurityController project, although that is even more decomposed into services, and might be a better model follow up. The UI

[osgi-dev] Vaadin and New enRoute

2018-06-25 Thread Paul F Fraser via osgi-dev
At last I have a working vaadin UI in the new enRoute environment. https://github.com/QNENet/vaadin-osgi-enRoute The code is based on work by Mirjan Merruko of Vaadin in preparation for possible inclusion in an upcoming Vaadin release. I have no yet tried any themes other than the default