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 java.lang.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
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<?>
arguments
The constructor arguments.private java.lang.reflect.Constructor<? extends Plugin>
constructor
The represented 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.
-
-
-
Field Detail
-
constructor
private final java.lang.reflect.Constructor<? extends Plugin> constructor
The represented constructor.
-
arguments
private final java.util.List<?> arguments
The constructor arguments.
-
-
Constructor Detail
-
Resolved
protected Resolved(java.lang.reflect.Constructor<? extends Plugin> constructor, java.util.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.
-
-