BATCHEE-149 only use CDI if container is started
authorMark Struberg <struberg@apache.org>
Wed, 28 Apr 2021 13:35:51 +0000 (15:35 +0200)
committerMark Struberg <struberg@apache.org>
Wed, 28 Apr 2021 13:35:51 +0000 (15:35 +0200)
commit7e873bd4da227975dc5cd2ea75ce4f4b88f649ea
treea4395500a3a1c225cd5fae31112513777b8e962a
parent5b104e1bcf2a7406bdfb43e2d42c9ae9c063e4f3
BATCHEE-149 only use CDI if container is started

CDI.current() throws IllegalStateException to indicate
that container is not started.
jbatch/src/main/java/org/apache/batchee/container/util/ClassLoaderAwareHandler.java