Enum AgentBuilder.InitializationStrategy.NoOp

    • Constructor Detail

      • NoOp

        private NoOp()
    • Method Detail

      • values

        public static AgentBuilder.InitializationStrategy.NoOp[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AgentBuilder.InitializationStrategy.NoOp c : AgentBuilder.InitializationStrategy.NoOp.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AgentBuilder.InitializationStrategy.NoOp valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • register

        public void register​(DynamicType dynamicType,
                             java.lang.ClassLoader classLoader,
                             java.security.ProtectionDomain protectionDomain,
                             AgentBuilder.InjectionStrategy injectionStrategy)
        Registers a dynamic type for initialization and/or begins the initialization process.
        Specified by:
        register in interface AgentBuilder.InitializationStrategy.Dispatcher
        Parameters:
        dynamicType - The dynamic type that is created.
        classLoader - The class loader of the dynamic type which can be null to represent the bootstrap class loader.
        protectionDomain - The instrumented type's protection domain or null if no protection domain is available.
        injectionStrategy - The injection strategy to use.