Enum AgentBuilder.InjectionStrategy.UsingReflection

    • Constructor Detail

      • UsingReflection

        private UsingReflection()
    • Method Detail

      • values

        public static AgentBuilder.InjectionStrategy.UsingReflection[] 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.InjectionStrategy.UsingReflection c : AgentBuilder.InjectionStrategy.UsingReflection.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.InjectionStrategy.UsingReflection 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 ClassInjector resolve​(java.lang.ClassLoader classLoader,
                                     java.security.ProtectionDomain protectionDomain)
        Resolves the class injector to use for a given class loader and protection domain.
        Specified by:
        resolve in interface AgentBuilder.InjectionStrategy
        Parameters:
        classLoader - The class loader to use.
        protectionDomain - The protection domain to use.
        Returns:
        The class injector to use.