Class CreationalContextReleaseListener
- java.lang.Object
-
- org.camunda.bpm.engine.cdi.impl.util.CreationalContextReleaseListener
-
- All Implemented Interfaces:
org.camunda.bpm.engine.impl.interceptor.CommandContextListener
public class CreationalContextReleaseListener extends Object implements org.camunda.bpm.engine.impl.interceptor.CommandContextListener
CommandContextCloseListenerwhich releases a CDI Creational Context when the command context is closed. This is necessary to ensure thatDependentscoped 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 voidonCommandContextClose(org.camunda.bpm.engine.impl.interceptor.CommandContext commandContext)voidonCommandFailed(org.camunda.bpm.engine.impl.interceptor.CommandContext commandContext, Throwable t)protected voidrelease(javax.enterprise.context.spi.CreationalContext<?> creationalContext)
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
context
protected javax.enterprise.context.spi.CreationalContext<?> context
-
-
Method Detail
-
onCommandContextClose
public void onCommandContextClose(org.camunda.bpm.engine.impl.interceptor.CommandContext commandContext)
- Specified by:
onCommandContextClosein interfaceorg.camunda.bpm.engine.impl.interceptor.CommandContextListener
-
onCommandFailed
public void onCommandFailed(org.camunda.bpm.engine.impl.interceptor.CommandContext commandContext, Throwable t)- Specified by:
onCommandFailedin interfaceorg.camunda.bpm.engine.impl.interceptor.CommandContextListener
-
release
protected void release(javax.enterprise.context.spi.CreationalContext<?> creationalContext)
-
-