Christian
Christian

Reputation: 7429

Change default scope in CDI Beans

is it possible to change the default scope of CDI Beans (dependent scope) to something else (like ApplicationScope)? Thanks

Upvotes: 0

Views: 209

Answers (1)

Harald Wellmann
Harald Wellmann

Reputation: 12865

There is no simple API call or configuration property to do that, but you can always write a portable extension to add or replace scope annotations by observing the ProcessAnnotatedTypeevent.

Upvotes: 4

Related Questions