Skip to content

WICKET-7126 simplify CdiConfiguration + BeanManagerLookup#1369

Open
pedrosans wants to merge 1 commit intomasterfrom
pedro/cdi-improvement
Open

WICKET-7126 simplify CdiConfiguration + BeanManagerLookup#1369
pedrosans wants to merge 1 commit intomasterfrom
pedro/cdi-improvement

Conversation

@pedrosans
Copy link
Contributor

This change clean up CdiConfiguration and BeanManagerLookup by removing some logic and state related to fallbackBeanManager and lastSuccessful strategy, while removing none of the functionality. For instance, it's still possible to have a fallback BeanManager as a config option if the current lookup fail:

bm = BeanManagerLookup.lookup();
if (bm == null)
bm = customBeamManager;

Another benefit of this change is the reduced number of times the new code will make expensive (time consuming) JNDI lookups.

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