Interface AgentBuilder.Identified.Extendable

    • Method Detail

      • asDecorator

        AgentBuilder asDecorator()

        Applies the specified transformation as a decorative transformation. For a decorative transformation, the supplied transformer is prepended to any previous transformation that also matches the instrumented type, i.e. both transformations are supplied. This procedure is repeated until a transformer is reached that matches the instrumented type but is not defined as decorating after which no further transformations are considered. If all matching transformations are declared as decorating, all matching transformers are applied.

        Note: A decorating transformer is applied after previously registered transformers.

        Returns:
        A new instance of this agent builder with the specified transformation being applied as a decorator.