Class Plugin.Factory.UsingReflection

java.lang.Object
net.bytebuddy.build.Plugin.Factory.UsingReflection
All Implemented Interfaces:
Plugin.Factory
Enclosing interface:
Plugin.Factory

@Enhance public static class Plugin.Factory.UsingReflection extends Object implements Plugin.Factory
A plugin factory that uses reflection for instantiating a plugin.
  • Field Details

  • Constructor Details

    • UsingReflection

      public UsingReflection(Class<? extends Plugin> type)
      Creates a plugin factory that uses reflection for creating a plugin.
      Parameters:
      type - The plugin type.
    • UsingReflection

      protected UsingReflection(Class<? extends Plugin> type, List<Plugin.Factory.UsingReflection.ArgumentResolver> argumentResolvers)
      Creates a plugin factory that uses reflection for creating a plugin.
      Parameters:
      type - The plugin type.
      argumentResolvers - A list of argument providers that can be used for instantiating the plugin.
  • Method Details

    • with

      Appends the supplied argument resolvers.
      Parameters:
      argumentResolver - A list of argument providers that can be used for instantiating the plugin.
      Returns:
      A new plugin factory that uses reflection for creating a plugin that also uses the supplied argument resolvers.
    • with

      Appends the supplied argument resolvers.
      Parameters:
      argumentResolvers - A list of argument providers that can be used for instantiating the plugin.
      Returns:
      A new plugin factory that uses reflection for creating a plugin that also uses the supplied argument resolvers.
    • make

      public Plugin make()
      Returns a plugin that can be used for a transformation and which is subsequently closed.
      Specified by:
      make in interface Plugin.Factory
      Returns:
      The plugin to use for type transformations.