Interface OperationProvider<T extends Operation<T>>

Type Parameters:
T - the operation type
All Known Subinterfaces:
DomainOperation<T>, Operation<T>, PdoCacheOperation, PdoCacheOperationPersistence, PersistentOperation<T>
All Known Implementing Classes:
AbstractDomainOperation, AbstractPersistentOperation, DummyPersistentOperation, PdoCacheOperationPersistenceImpl

public interface OperationProvider<T extends Operation<T>>
Provider for an Operation.
Author:
harald
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the operation.
    default T
    op()
    Creates a new instance of the same type as the operation.
    default T
    op(String contextName)
    Creates a new instance of the same type as the operation within a sub context.
    The sub context is created only if the operation's context is not already within the given name.
  • Method Details

    • getOperation

      @NotInterceptable T getOperation()
      Gets the operation.
      Returns:
      the operation
    • op

      default T op()
      Creates a new instance of the same type as the operation.
      Returns:
      the new instance
    • op

      default T op(String contextName)
      Creates a new instance of the same type as the operation within a sub context.
      The sub context is created only if the operation's context is not already within the given name. The root entity of the context, if any, is kept.
      Parameters:
      contextName - the context name
      Returns:
      the new instance