-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add examples of using DS features in Vaadin components #25
Comments
Would an example as the Spring one be sufficient? |
Well, the most obvious example is to "inject" a service into a component. Would be good to see some other features in action (may be @activate, etc.) and I'm not aware about any good example for other usecase here. |
Ok, I will create some examples. Probably over the weekend. |
@denis-anisimov I've created a small sample repository with two examples on how OSGi components that are also Routes might look like: https://github.com/Sandared/flow-osgi-example You can use Gitpod to run the examples or you can run locally from your console. The aliases I use in Gitpod are defined here: https://github.com/Sandared/flow-osgi-example/blob/master/Dockerfile
In the parent POM I reference the current Vaadin Flow 12.0.7 vaadin-bom. If you need any other examples just notify me :) |
Thank you very much @Sandared for the examples ! |
Hey, @Sandared could we integrate this with CDI? |
Hi Julian, |
I'm closing this issue for now as there are examples in https://github.com/vaadin/base-starter-flow-osgi/tree/v19/starter/src/main/java/com/example/starter/base and https://github.com/vaadin/base-starter-flow-karaf/tree/v19/starter/src/main/java/com/example/starter/base. Further improvements should be on specific use case bases. |
This is a demo for vaadin/flow#5125.
Could be done before vaadin/flow#5125 but won't work until the feature is implemented.
The purpose of this ticket is: demo OSGi DS features used for Vaadin components.
This is quite similar to https://github.com/vaadin/flow-spring-tutorial.
May be @Sandared may help with meaningful examples.
The text was updated successfully, but these errors were encountered: