-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial OSGi support for Flow #455
Comments
Make sure the Model Proxy beans generated using Byte Buddy work as expected |
👍 |
1 similar comment
👍 |
We need OSGI Support for our project. We are currently injecting OSGI services into the UiProvider and ViewProviders. Since those providers no longer exist in Vaadin 10, how can we do that now? |
@Sandared @frieder Please note that it's more impactful to express your 👍 as a "reaction" on the issue itself compared to adding the same as a comment. The reason for this is that we occasionally look through the list of issues with most 👍 reactions, whereas we might not open individual tickets to check if there happen to be 👍 comments there. At the same time, the number of 👍 in any location isn't the only input to our prioritization. |
It's really important that Vaadin components can use Declarative Services to inject OSGi services and configurations. I have previously used the |
We do it exactly the same way in our project. |
My project is 100% Vaadin and OSGi. I am not dependent on ViewProvider but I would be stuffed without UIProvider. |
Functionality similar to In addition to this, I can foresee a couple of things that would be necessary:
Anything else? |
I would add two points to this list:
For Vaadin 8 I implemented such a solution in Xtend, which you can see here |
|
OSGi (and declarative services) support should be an absolute must in Vaadin 10, 11, 12 etc. 👍 |
The OSGiVaadinResources declares static global resources (widgets, themes, images and JS libraries) that are NOT independent from each bundle, they are global to Liferay DXP (i.e., the equinox OSGi). I think this approach breaks the rule that bundles has to be independent and just have an API. |
We're using Vaadin 8 and OSGi in Liferay 7, and won't be able to migrate to flow until OSGi is supported. |
Just to clarify here to all who are eagerly waiting for the OSGi support in V10+ : Vaadin 11 will not have OSGi support, unfortunately. Flow 1.1.0.beta1 is OSGI compatible, but the webjars used by the web component Java integrations are not OSGi compatible. Here is the issues for reference: If the webjars would get OSGi compatiblity, then we would be one step closer to the Vaadin platform being OSGi compatible. But this is not directly controlled by us so I cannot say whether this will happen or not (see the webjars issues for progress). Our plan currently is to extract all the webjars/frontend dependencies (regardless of if webjars or another package manager like npm is used) and package them together as one single OSGi compatible bundle. This is something that you can already do yourself (when using Flow 1.1) but is not trivial. We want to make it easy. The bad thing is that these things are not ready on time for Vaadin 11, and thus the next target is Vaadin 12 which will hit beta in beginning of November and everything should be done by then. |
We also have a previous integration based on injecting UIProvider etc. |
I am using Vaadin 8 / OSGi in a SCS architecture ( https://scs-architecture.org ) providing a working dynamic and modular setup. Having OSGi support within Vaadin is a crucial requirement. I do not want to build Web UIs in any other way anymore. |
We are in similar position: we use Liferay DXP as a crucial requirement for our Customers. No step back. They use Liferay in many other ways (not just Vaadin). So Liferay DXP forces to use Vaadin 8/OSGi. And it is an excellent architecture. |
The text was updated successfully, but these errors were encountered: