Enum AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled

    • Constructor Detail

      • Disabled

        private Disabled()
    • Method Detail

      • values

        public static AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled[] 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.RedefinitionStrategy.ResubmissionEnforcer.Disabled c : AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled.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.RedefinitionStrategy.ResubmissionEnforcer.Disabled 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
      • isEnforced

        public boolean isEnforced​(java.lang.String typeName,
                                  java.lang.ClassLoader classLoader,
                                  JavaModule module,
                                  java.lang.Class<?> classBeingRedefined)
        Returns true if a class should be scheduled for resubmission.
        Specified by:
        isEnforced in interface AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer
        Parameters:
        typeName - The name of the instrumented class.
        classLoader - The class loader of the instrumented class.
        module - The module of the instrumented class or null if the module system is not supported.
        classBeingRedefined - The class to be redefined or null if the current type is loaded for the first time.
        Returns:
        true if the class should be scheduled for resubmission.