Skip to content

Use a singleton Registry#26

Open
sderosiaux wants to merge 1 commit into
fiadliel:gh-pagesfrom
sderosiaux:patch-1
Open

Use a singleton Registry#26
sderosiaux wants to merge 1 commit into
fiadliel:gh-pagesfrom
sderosiaux:patch-1

Conversation

@sderosiaux

Copy link
Copy Markdown

By default, a different instance of DefaultRegistry will be created for each injection (typically in the Play Filters, and into a Controller for /metrics), but both will use a different Registry instances. Declaring the binding as a singleton fixes the issue.

By default, a different instance of DefaultRegistry will be created for each injection (typically in the Play Filters, and into a Controller for /metrics), but both will use a different Registry instances. Declaring the binding as a singleton fixes the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant