Interface IInterceptorLambda

All Superinterfaces:
IInterceptor
All Known Implementing Classes:
IInterceptorLambda
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IInterceptorLambda extends IInterceptor
This interface is used to define a Java interceptor. An interceptor is a class that can be used to intercept events in BoxLang and discovered by Module Services.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    configure(IStruct properties)
    This method is called by the BoxLang runtime to configure the interceptor with a Struct of properties
    This method is called by the BoxLang runtime to intercept an event

    Methods inherited from interface ortus.boxlang.runtime.events.IInterceptor

    configure
  • Method Details

    • intercept

      Boolean intercept(IStruct data)
      This method is called by the BoxLang runtime to intercept an event
      Parameters:
      data - The data to intercept
      Returns:
      True, if you want to stop the chain. False or null if you want to continue the chain.
    • configure

      default void configure(IStruct properties)
      This method is called by the BoxLang runtime to configure the interceptor with a Struct of properties
      Specified by:
      configure in interface IInterceptor
      Parameters:
      properties - The properties to configure the interceptor with (if any)