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.Ambiguous, Plugin.Factory.UsingReflection.Instantiator.Resolved, Plugin.Factory.UsingReflection.Instantiator.Unresolved
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<?>
The constructor arguments.private final Constructor<? extends Plugin>
The represented constructor. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Resolved
(Constructor<? extends Plugin> constructor, List<?> arguments) Creates a new resolved constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected Constructor<? extends Plugin>
Returns the resolved constructor.Instantiates the represented plugin.Returns either this instantiator or the supplied instantiator, depending on the instances' states.
-
Field Details
-
constructor
The represented constructor. -
arguments
The constructor arguments.
-
-
Constructor Details
-
Resolved
Creates a new resolved constructor.- Parameters:
constructor
- The represented constructor.arguments
- The constructor arguments.
-
-
Method Details
-
getConstructor
Returns the resolved constructor.- Returns:
- The resolved constructor.
-
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
Instantiates the represented plugin.- Specified by:
instantiate
in interfacePlugin.Factory.UsingReflection.Instantiator
- Returns:
- The instantiated plugin.
-