Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit 04ea456

Browse files
committed
Fixed non-CDI deployment (TCK test failures): avoid CDI factory bindings when CDI bean manager is not available
Change-Id: I8aabb79dfba46973ec3c4be462deb5deb572486f Signed-off-by: Jakub Podlesak <[email protected]>
1 parent dce250e commit 04ea456

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

containers/glassfish/jersey-gf-cdi/src/main/java/org/glassfish/jersey/gf/cdi/internal/CdiComponentProvider.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,10 @@ public boolean bind(final Class<?> clazz, final Set<Class<?>> providerContracts)
411411

412412
@Override
413413
public void done() {
414-
bindHk2ClassAnalyzer();
415-
bindWaeRestoringExceptionMapper();
414+
if (beanManager != null) {
415+
bindHk2ClassAnalyzer();
416+
bindWaeRestoringExceptionMapper();
417+
}
416418
}
417419

418420
private void bindWaeRestoringExceptionMapper() {

0 commit comments

Comments
 (0)