Interface WrappingBehavior<O,​I>

  • All Known Implementing Classes:
    InterceptorImpl

    public interface WrappingBehavior<O,​I>
    INTERNAL API

    Behaviors that wrap other behaviors must sometimes be traversed to look through the stack of behaviors, for example to deduplicate wrapping behaviors. They should therefore implement this trait (interface).

    Do not implement this, instead reach for BehaviorInterceptor

    • Method Detail

      • nestedBehavior

        Behavior<I> nestedBehavior()
        Returns:
        The behavior that is wrapped by this behavior
      • replaceNested

        Behavior<O> replaceNested​(Behavior<I> newNested)
        Replace the behavior that is wrapped by this behavior with a new nested behavior
        Parameters:
        newNested - (undocumented)
        Returns:
        a new instance of this wrapping behavior with newNested as nestedBehavior