Class CreationalContextReleaseListener
- java.lang.Object
-
- org.camunda.bpm.engine.cdi.impl.util.CreationalContextReleaseListener
-
- All Implemented Interfaces:
CommandContextListener
public class CreationalContextReleaseListener extends java.lang.Object implements CommandContextListener
CommandContextCloseListener
which releases a CDI Creational Context when the command context is closed. This is necessary to ensure thatDependent
scoped beans are properly destroyed.- Author:
- Daniel Meyer
-
-
Constructor Summary
Constructors Constructor Description CreationalContextReleaseListener(javax.enterprise.context.spi.CreationalContext<?> ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCommandContextClose(CommandContext commandContext)
void
onCommandFailed(CommandContext commandContext, java.lang.Throwable t)
protected void
release(javax.enterprise.context.spi.CreationalContext<?> creationalContext)
-
-
-
Method Detail
-
onCommandContextClose
public void onCommandContextClose(CommandContext commandContext)
- Specified by:
onCommandContextClose
in interfaceCommandContextListener
-
onCommandFailed
public void onCommandFailed(CommandContext commandContext, java.lang.Throwable t)
- Specified by:
onCommandFailed
in interfaceCommandContextListener
-
release
protected void release(javax.enterprise.context.spi.CreationalContext<?> creationalContext)
-
-