-
Notifications
You must be signed in to change notification settings - Fork 3
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 remaining CDI normal scopes: RouteScoped, UIScoped, VaadinSessionScoped #25
Conversation
- Since Quakrus at the moment doesn't support pseudo scoped properly the only UI scope which works is normal. Use it as a primary scope in the impl. - Rework IT tests for UI scope. - Add initial RouteScope support in the same way as UI : normal scope is a primary scope since it's the only supported scope.
- Add RouteScope context impl - Register Route scope - Add unit tests for Route scope - Add ITs for Route Scope - Fire UI evens using bean manager to be able to observe them via CDI - Add ITs for UI events
...n-test-code/src/main/java/com/vaadin/flow/quarkus/it/routecontext/PreserveOnRefreshBean.java
Outdated
Show resolved
Hide resolved
...tion-tests/common-test-code/src/test/java/com/vaadin/flow/quarkus/it/SessionContextTest.java
Outdated
Show resolved
Hide resolved
runtime/src/main/java/com/vaadin/quarkus/context/RouteScopedContext.java
Outdated
Show resolved
Hide resolved
runtime/src/main/java/com/vaadin/quarkus/context/RouteScopedContext.java
Show resolved
Hide resolved
runtime/src/test/java/com/vaadin/quarkus/context/BeanManagerProxy.java
Outdated
Show resolved
Hide resolved
runtime/src/test/java/com/vaadin/quarkus/context/SessionUnderTestContext.java
Outdated
Show resolved
Hide resolved
runtime/src/test/java/com/vaadin/quarkus/context/TestHasElement.java
Outdated
Show resolved
Hide resolved
runtime/src/test/java/com/vaadin/quarkus/context/TestRouteScopedContext.java
Outdated
Show resolved
Hide resolved
runtime/src/test/java/com/vaadin/quarkus/context/UiContextTest.java
Outdated
Show resolved
Hide resolved
Seems fine, Mikhail will check the RouteScope tests as I don't have that much knowledge on how they should go.
...mon-test-code/src/main/java/com/vaadin/flow/quarkus/it/routecontext/AbstractCountedBean.java
Outdated
Show resolved
Hide resolved
...mon-test-code/src/main/java/com/vaadin/flow/quarkus/it/routecontext/AbstractCountedView.java
Outdated
Show resolved
Hide resolved
...-tests/common-test-code/src/main/java/com/vaadin/flow/quarkus/it/routecontext/ApartBean.java
Outdated
Show resolved
Hide resolved
.../common-test-code/src/main/java/com/vaadin/flow/quarkus/it/routecontext/DetailApartView.java
Outdated
Show resolved
Hide resolved
.../common-test-code/src/main/java/com/vaadin/flow/quarkus/it/routecontext/DetailApartView.java
Outdated
Show resolved
Hide resolved
...sts/common-test-code/src/main/java/com/vaadin/flow/quarkus/it/routecontext/AssignedBean.java
Outdated
Show resolved
Hide resolved
...tests/common-test-code/src/main/java/com/vaadin/flow/quarkus/it/routecontext/MasterView.java
Outdated
Show resolved
Hide resolved
...tests/common-test-code/src/main/java/com/vaadin/flow/quarkus/it/routecontext/MasterView.java
Show resolved
Hide resolved
...common-test-code/src/main/java/com/vaadin/flow/quarkus/it/routecontext/ChildNoOwnerView.java
Outdated
Show resolved
Hide resolved
...sts/common-test-code/src/main/java/com/vaadin/flow/quarkus/it/routecontext/CountedPerUI.java
Outdated
Show resolved
Hide resolved
.../common-test-code/src/main/java/com/vaadin/flow/quarkus/it/routecontext/CustomException.java
Outdated
Show resolved
Hide resolved
...mmon-test-code/src/main/java/com/vaadin/flow/quarkus/it/routecontext/DetailAssignedView.java
Outdated
Show resolved
Hide resolved
...n-tests/common-test-code/src/main/java/com/vaadin/flow/quarkus/it/routecontext/RootView.java
Outdated
Show resolved
Hide resolved
...on-test-code/src/main/java/com/vaadin/flow/quarkus/it/sessioncontext/SessionContextView.java
Show resolved
Hide resolved
...s/common-test-code/src/main/java/com/vaadin/flow/quarkus/it/uievents/NavigationObserver.java
Show resolved
Hide resolved
...s/common-test-code/src/main/java/com/vaadin/flow/quarkus/it/uievents/NavigationObserver.java
Show resolved
Hide resolved
...n-tests/common-test-code/src/main/java/com/vaadin/flow/quarkus/it/uievents/UIEventsView.java
Show resolved
Hide resolved
...ration-tests/common-test-code/src/test/java/com/vaadin/flow/quarkus/it/RouteContextTest.java
Outdated
Show resolved
Hide resolved
runtime/src/main/java/com/vaadin/quarkus/QuarkusVaadinServletService.java
Show resolved
Hide resolved
runtime/src/main/java/com/vaadin/quarkus/annotation/NormalRouteScoped.java
Outdated
Show resolved
Hide resolved
runtime/src/main/java/com/vaadin/quarkus/annotation/NormalUIScoped.java
Outdated
Show resolved
Hide resolved
runtime/src/main/java/com/vaadin/quarkus/annotation/RouteScopeOwner.java
Outdated
Show resolved
Hide resolved
runtime/src/main/java/com/vaadin/quarkus/annotation/VaadinSessionScoped.java
Outdated
Show resolved
Hide resolved
runtime/src/main/java/com/vaadin/quarkus/context/ContextUtils.java
Outdated
Show resolved
Hide resolved
runtime/src/main/java/com/vaadin/quarkus/context/RouteScopedContext.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Despite I haven't review all the tests and route scope related code, I propose to merge this PR to not block the further development of scopes implementation and recheck it later-on.
Fixes #13
Description
Please list all relevant dependencies in this section and provide summary of the change, motivation and context.
Fixes # (issue)
Type of change
Checklist
Additional for
Feature
type of change