Interface IBaseInterceptorBroadcaster<POINTCUT extends IPointcut>

All Known Subinterfaces:
IBaseInterceptorService<POINTCUT>, IInterceptorBroadcaster, IInterceptorService
All Known Implementing Classes:
BaseInterceptorService, InterceptorService

public interface IBaseInterceptorBroadcaster<POINTCUT extends IPointcut>
  • Method Details

    • callHooks

      boolean callHooks(POINTCUT thePointcut, HookParams theParams)
      Invoke registered interceptor hook methods for the given Pointcut.
      Returns:
      Returns false if any of the invoked hook methods returned false, and returns true otherwise.
    • ifHasCallHooks

      default boolean ifHasCallHooks(POINTCUT thePointcut, Supplier<HookParams> theParamsSupplier)
      A supplier-based callHooks() for lazy construction of the HookParameters.
      Returns:
      false if any hook methods return false, return true otherwise.
    • callHooksAndReturnObject

      Invoke registered interceptor hook methods for the given Pointcut. This method should only be called for pointcuts that return a type other than void or boolean
      Returns:
      Returns the object returned by the first hook method that did not return null
    • ifHasCallHooksAndReturnObject

      default Object ifHasCallHooksAndReturnObject(POINTCUT thePointcut, Supplier<HookParams> theParams)
      A supplier-based version of callHooksAndReturnObject for lazy construction of the params.
      Returns:
      Returns the object returned by the first hook method that did not return null or null
    • hasHooks

      boolean hasHooks(POINTCUT thePointcut)
      Does this broadcaster have any hooks for the given pointcut?
      Parameters:
      thePointcut - The poointcut
      Returns:
      Does this broadcaster have any hooks for the given pointcut?
      Since:
      4.0.0