Package net.bytebuddy.build
Class Plugin.Factory.UsingReflection.Instantiator.Resolved
- java.lang.Object
-
- net.bytebuddy.build.Plugin.Factory.UsingReflection.Instantiator.Resolved
-
- All Implemented Interfaces:
Plugin.Factory.UsingReflection.Instantiator
- Enclosing interface:
- Plugin.Factory.UsingReflection.Instantiator
@Enhance public static class Plugin.Factory.UsingReflection.Instantiator.Resolved extends Object implements Plugin.Factory.UsingReflection.Instantiator
An instantiator that is resolved for a given constructor with arguments.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin.Factory.UsingReflection.Instantiator
Plugin.Factory.UsingReflection.Instantiator.Resolved, Plugin.Factory.UsingReflection.Instantiator.Unresolved
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Resolved(Constructor<? extends Plugin> constructor, List<?> arguments)
Creates a new resolved constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Plugin
instantiate()
Instantiates the represented plugin.Plugin.Factory.UsingReflection.Instantiator
replaceBy(Plugin.Factory.UsingReflection.Instantiator.Resolved instantiator)
Returns either this instantiator or the supplied instantiator, depending on the instances' states.
-
-
-
Constructor Detail
-
Resolved
protected Resolved(Constructor<? extends Plugin> constructor, List<?> arguments)
Creates a new resolved constructor.- Parameters:
constructor
- The represented constructor.arguments
- The constructor arguments.
-
-
Method Detail
-
replaceBy
public Plugin.Factory.UsingReflection.Instantiator replaceBy(Plugin.Factory.UsingReflection.Instantiator.Resolved instantiator)
Returns either this instantiator or the supplied instantiator, depending on the instances' states.- Specified by:
replaceBy
in interfacePlugin.Factory.UsingReflection.Instantiator
- Parameters:
instantiator
- The alternative instantiator.- Returns:
- The dominant instantiator.
-
instantiate
public Plugin instantiate()
Instantiates the represented plugin.- Specified by:
instantiate
in interfacePlugin.Factory.UsingReflection.Instantiator
- Returns:
- The instantiated plugin.
-
-