Class AgentBuilder.Transformer.ForBuildPlugin

    • Field Detail

      • plugin

        private final Plugin plugin
        The plugin to apply.
    • Constructor Detail

      • ForBuildPlugin

        public ForBuildPlugin​(Plugin plugin)
        Creates a new transformer for a build Plugin.
        Parameters:
        plugin - The plugin to apply.
    • Method Detail

      • transform

        public DynamicType.Builder<?> transform​(DynamicType.Builder<?> builder,
                                                TypeDescription typeDescription,
                                                java.lang.ClassLoader classLoader,
                                                JavaModule module)
        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.