Skip to content

refactor: extract @VaadinSessionScoped activation into managed bean (#515) (CP: 15.2)#516

Merged
mcollovati merged 1 commit into
15.2from
cherry/cherrypick-515-to-15.2
Jun 9, 2026
Merged

refactor: extract @VaadinSessionScoped activation into managed bean (#515) (CP: 15.2)#516
mcollovati merged 1 commit into
15.2from
cherry/cherrypick-515-to-15.2

Conversation

@mcollovati

Copy link
Copy Markdown
Contributor

Move the activation predicate and storage-access logic out of VaadinSessionScopedContext into a nested ContextualStorageManager managed bean. The context becomes a thin delegator. As a side effect, applications may replace the bean via CDI @Specializes to adjust behavior — though the manager is intentionally undocumented and overriding it is at the integrator's own risk.

Adds integration tests covering the strict default and the lenient @Specializes scenario from a background thread that does not hold the session lock.

References #506

…#515)

Move the activation predicate and storage-access logic out of
`VaadinSessionScopedContext` into a nested `ContextualStorageManager`
managed bean. The context becomes a thin delegator. As a side
effect, applications may replace the bean via CDI `@Specializes` to
adjust behavior — though the manager is intentionally undocumented
and overriding it is at the integrator's own risk.

Adds integration tests covering the strict default and the lenient
`@Specializes` scenario from a background thread that does not hold
the session lock.

References #506
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Test Results

131 tests  +9   131 ✅ +9   4m 48s ⏱️ + 2m 16s
 35 suites +2     0 💤 ±0 
 35 files   +2     0 ❌ ±0 

Results for commit 2681883. ± Comparison against base commit c57b5c8.

@mcollovati
mcollovati enabled auto-merge (squash) June 9, 2026 05:43
@mcollovati
mcollovati merged commit f487370 into 15.2 Jun 9, 2026
10 checks passed
@mcollovati
mcollovati deleted the cherry/cherrypick-515-to-15.2 branch June 9, 2026 11:41
@vaadin-bot

Copy link
Copy Markdown

This ticket/PR has been released with Vaadin 24.9.18.

@vaadin-bot

Copy link
Copy Markdown

This ticket/PR has been released with Vaadin 24.10.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants