Interface AgentBuilder.InitializationStrategy.Dispatcher

    • Method Detail

      • apply

        DynamicType.Builder<?> apply​(DynamicType.Builder<?> builder)
        Transforms the instrumented type to implement an appropriate initialization strategy.
        Parameters:
        builder - The builder which should implement the initialization strategy.
        Returns:
        The given builder with the initialization strategy applied.
      • register

        void register​(DynamicType dynamicType,
                      java.lang.ClassLoader classLoader,
                      AgentBuilder.InitializationStrategy.Dispatcher.InjectorFactory injectorFactory)
        Registers a dynamic type for initialization and/or begins the initialization process.
        Parameters:
        dynamicType - The dynamic type that is created.
        classLoader - The class loader of the dynamic type.
        injectorFactory - The injector factory