Class CreationalContextReleaseListener

  • All Implemented Interfaces:
    org.camunda.bpm.engine.impl.interceptor.CommandContextListener

    public class CreationalContextReleaseListener
    extends Object
    implements org.camunda.bpm.engine.impl.interceptor.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 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​(org.camunda.bpm.engine.impl.interceptor.CommandContext commandContext)
        Specified by:
        onCommandContextClose in interface org.camunda.bpm.engine.impl.interceptor.CommandContextListener
      • onCommandFailed

        public void onCommandFailed​(org.camunda.bpm.engine.impl.interceptor.CommandContext commandContext,
                                    Throwable t)
        Specified by:
        onCommandFailed in interface org.camunda.bpm.engine.impl.interceptor.CommandContextListener
      • release

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