Enum AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.SinglePass

    • Constructor Detail

      • SinglePass

        private SinglePass()
    • Method Detail

      • values

        public static AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.SinglePass[] 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.DiscoveryStrategy.SinglePass c : AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.SinglePass.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.DiscoveryStrategy.SinglePass 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
      • resolve

        public java.lang.Iterable<java.lang.Iterable<java.lang.Class<?>>> resolve​(java.lang.instrument.Instrumentation instrumentation)
        Resolves an iterable of types to retransform. Types might be loaded during a previous retransformation which might require multiple passes for a retransformation.
        Specified by:
        resolve in interface AgentBuilder.RedefinitionStrategy.DiscoveryStrategy
        Parameters:
        instrumentation - The instrumentation instance used for the redefinition.
        Returns:
        An iterable of types to consider for retransformation.