Interface Prototype.BuilderInterceptor<T>

Type Parameters:
T - the type of the bean builder to intercept
Enclosing class:
Prototype
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 static interface Prototype.BuilderInterceptor<T>
Provides a contract by which the Prototype.Blueprint annotated type can be intercepted (i.e., including decoration or mutation).

The implementation class type must provide a no-arg accessible constructor available to the generated class

Note that when intercepting config, you may get null even for required types, as these may be configured by your very builder interceptor.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    intercept(T target)
    Provides the ability to intercept (i.e., including decoration or mutation) the target.
  • Method Details

    • intercept

      T intercept(T target)
      Provides the ability to intercept (i.e., including decoration or mutation) the target.
      Parameters:
      target - the target being intercepted
      Returns:
      the mutated or replaced target (must not be null)