org.camunda.bpm.engine.cdi.impl.util
Class CreationalContextReleaseListener

java.lang.Object
  extended by org.camunda.bpm.engine.cdi.impl.util.CreationalContextReleaseListener
All Implemented Interfaces:
CommandContextCloseListener

public class CreationalContextReleaseListener
extends Object
implements CommandContextCloseListener

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
protected  javax.enterprise.context.spi.CreationalContext<?> context
           
protected static Logger LOG
           
 
Constructor Summary
CreationalContextReleaseListener(javax.enterprise.context.spi.CreationalContext<?> ctx)
           
 
Method Summary
 void onCommandContextClose(CommandContext commandContext)
           
protected  void release(javax.enterprise.context.spi.CreationalContext<?> creationalContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final Logger LOG

context

protected javax.enterprise.context.spi.CreationalContext<?> context
Constructor Detail

CreationalContextReleaseListener

public CreationalContextReleaseListener(javax.enterprise.context.spi.CreationalContext<?> ctx)
Method Detail

onCommandContextClose

public void onCommandContextClose(CommandContext commandContext)
Specified by:
onCommandContextClose in interface CommandContextCloseListener

release

protected void release(javax.enterprise.context.spi.CreationalContext<?> creationalContext)


Copyright © 2014 camunda services GmbH. All Rights Reserved.