eager @Scoped beans [SPR-17157] #21694
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: waiting-for-triage
An issue we've not yet triaged or decided on
Caleb Cushing opened SPR-17157 and commented
I tried this, but including the autowired
HttpServletRequest
was thinking that I could simply propagate the context with with it, I then tried adding
@Lazy(false)
to the definition, but it still didn't instantiate object until I fetched, and called a method on it.I would like a way to say
@Eager
on scoped beans (note: this example has@RequestScope
but I was also trying to do it with a registered/known workingSimpleTransactionScope
andSimpleThreadScope
I don't want that to be the default behavior for scoped beans, just an option to create them as soon as scope comes into being.
Issue Links:
@Scope
The text was updated successfully, but these errors were encountered: