Class AgentBuilder.Transformer.Compound

    • Constructor Detail

      • Compound

        public Compound​(AgentBuilder.Transformer... transformer)
        Creates a new compound transformer.
        Parameters:
        transformer - The transformers to apply in their application order.
      • Compound

        public Compound​(java.util.List<? extends AgentBuilder.Transformer> transformers)
        Creates a new compound transformer.
        Parameters:
        transformers - The transformers to apply in their application order.
    • Method Detail

      • transform

        public DynamicType.Builder<?> transform​(DynamicType.Builder<?> builder,
                                                TypeDescription typeDescription,
                                                java.lang.ClassLoader classLoader,
                                                JavaModule module)
        Description copied from interface: AgentBuilder.Transformer
        Allows for a transformation of a DynamicType.Builder.
        Specified by:
        transform in interface AgentBuilder.Transformer
        Parameters:
        builder - The dynamic builder to transform.
        typeDescription - The description of the type currently being instrumented.
        classLoader - The class loader of the instrumented class. Might be null to represent the bootstrap class loader.
        module - The class's module or null if the current VM does not support modules.
        Returns:
        A transformed version of the supplied builder.