You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -65,8 +66,11 @@ public CdiConfiguration setPropagation(IConversationPropagation propagation)
65
66
publicBeanManagergetBeanManager()
66
67
{
67
68
if (beanManager == null)
69
+
{
68
70
thrownewIllegalStateException(
69
-
"app not configured or no BeanManager was resolved during the configuration");
71
+
"No BeanManager was resolved during configuration. Be sure " +
72
+
"to specify a BeanManager in CdiConfiguration constructor or that one can be resolved by BeanManagerLookup, and that CdiConfiguration#configure is called.");
73
+
}
70
74
returnbeanManager;
71
75
}
72
76
@@ -77,12 +81,16 @@ public BeanManager getBeanManager()
77
81
*/
78
82
publicvoidconfigure(Applicationapplication)
79
83
{
80
-
if(beanManager == null)
84
+
if (beanManager == null)
85
+
{
81
86
beanManager = BeanManagerLookup.lookup();
87
+
}
82
88
83
89
if (beanManager == null)
90
+
{
84
91
thrownewIllegalStateException(
85
92
"No BeanManager was set or found via the CDI provider. Check your CDI setup or specify a BeanManager in the CdiConfiguration.");
93
+
}
86
94
87
95
if (application.getMetaData(CDI_CONFIGURATION_KEY) != null)
0 commit comments