public class CreationalContextReleaseListener extends Object implements 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.| Modifier and Type | Field and Description |
|---|---|
protected javax.enterprise.context.spi.CreationalContext<?> |
context |
protected static Logger |
LOG |
| Constructor and Description |
|---|
CreationalContextReleaseListener(javax.enterprise.context.spi.CreationalContext<?> ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
onCommandContextClose(CommandContext commandContext) |
void |
onCommandFailed(CommandContext commandContext,
Throwable t) |
protected void |
release(javax.enterprise.context.spi.CreationalContext<?> creationalContext) |
protected static final Logger LOG
protected javax.enterprise.context.spi.CreationalContext<?> context
public CreationalContextReleaseListener(javax.enterprise.context.spi.CreationalContext<?> ctx)
public void onCommandContextClose(CommandContext commandContext)
onCommandContextClose in interface CommandContextListenerpublic void onCommandFailed(CommandContext commandContext, Throwable t)
onCommandFailed in interface CommandContextListenerprotected void release(javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Copyright © 2013–2020 camunda services GmbH. All rights reserved.