Package: grails.async.services

## [Groovy] Class PersistenceContextPromiseDecorator

- grails.async.services.PersistenceContextPromiseDecorator

- All Implemented Interfaces and Traits:
    PromiseDecorator

      @groovy.transform.CompileStatic
      class PersistenceContextPromiseDecorator

  A PromiseDecorator that wraps a promise execution in a persistence context (example Hibernate session)

  Authors:
    Graeme Rocher
  Since:
    2.3

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `PersistenceContextInterceptorExecutor` | `persistenceContextInterceptorExecutor`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `PersistenceContextPromiseDecorator (PersistenceContextInterceptorExecutor persistenceContextInterceptorExecutor)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `<D>` | `groovy.lang.Closure<D>` | `decorate(groovy.lang.Closure<D> original)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Property Detail

    - #### PersistenceContextInterceptorExecutor persistenceContextInterceptorExecutor

  - ### Constructor Detail

    - #### PersistenceContextPromiseDecorator(PersistenceContextInterceptorExecutor persistenceContextInterceptorExecutor)

  - ### Method Detail

    - #### <D> @java.lang.Override groovy.lang.Closure<D> decorate(groovy.lang.Closure<D> original)