Class Advice.Dispatcher.Resolved.AbstractBase

    • Constructor Detail

      • AbstractBase

        protected AbstractBase​(MethodDescription.InDefinedShape adviceMethod,
                               Advice.PostProcessor postProcessor,
                               java.util.List<? extends Advice.OffsetMapping.Factory<?>> factories,
                               TypeDescription throwableType,
                               TypeDescription relocatableType,
                               int relocatableIndex,
                               Advice.OffsetMapping.Factory.AdviceType adviceType)
        Creates a new resolved version of a dispatcher.
        Parameters:
        adviceMethod - The represented advice method.
        postProcessor - The post processor to use.
        factories - A list of factories to resolve for the parameters of the advice method.
        throwableType - The type to handle by a suppression handler or Advice.NoExceptionHandler to not handle any exceptions.
        relocatableType - The type to trigger a relocation of the method's control flow or void if no relocation should be executed.
        relocatableIndex - The index within an array that is returned by the advice method, indicating the value to consider for relocation.
        adviceType - The applied advice type.
    • Method Detail

      • isAlive

        public boolean isAlive()
        Returns true if this dispatcher is alive.
        Specified by:
        isAlive in interface Advice.Dispatcher
        Returns:
        true if this dispatcher is alive.