Class CreationalContextReleaseListener
java.lang.Object
org.camunda.bpm.engine.cdi.impl.util.CreationalContextReleaseListener
- All Implemented Interfaces:
CommandContextListener
CommandContextCloseListener
which releases a CDI Creational Context when the command context is closed.
This is necessary to ensure that Dependent
scoped beans are properly destroyed.- Author:
- Daniel Meyer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreationalContextReleaseListener
(javax.enterprise.context.spi.CreationalContext<?> ctx) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onCommandContextClose
(CommandContext commandContext) void
onCommandFailed
(CommandContext commandContext, Throwable t) protected void
release
(javax.enterprise.context.spi.CreationalContext<?> creationalContext)
-
Field Details
-
LOG
-
context
protected javax.enterprise.context.spi.CreationalContext<?> context
-
-
Constructor Details
-
CreationalContextReleaseListener
public CreationalContextReleaseListener(javax.enterprise.context.spi.CreationalContext<?> ctx)
-
-
Method Details
-
onCommandContextClose
- Specified by:
onCommandContextClose
in interfaceCommandContextListener
-
onCommandFailed
- Specified by:
onCommandFailed
in interfaceCommandContextListener
-
release
protected void release(javax.enterprise.context.spi.CreationalContext<?> creationalContext)
-