Package net.bytebuddy.build
Class Plugin.Factory.UsingReflection.Instantiator.Unresolved
java.lang.Object
net.bytebuddy.build.Plugin.Factory.UsingReflection.Instantiator.Unresolved
- All Implemented Interfaces:
Plugin.Factory.UsingReflection.Instantiator
- Enclosing interface:
- Plugin.Factory.UsingReflection.Instantiator
@Enhance
public static class Plugin.Factory.UsingReflection.Instantiator.Unresolved
extends Object
implements Plugin.Factory.UsingReflection.Instantiator
An instantiator that is not resolved for creating an instance.
-
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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Unresolved
(Class<? extends Plugin> type) Creates a new unresolved constructor. -
Method Summary
Modifier and TypeMethodDescriptionInstantiates the represented plugin.Returns either this instantiator or the supplied instantiator, depending on the instances' states.
-
Field Details
-
type
The type for which no constructor was yet resolved.
-
-
Constructor Details
-
Unresolved
Creates a new unresolved constructor.- Parameters:
type
- The type for which no constructor was yet resolved.
-
-
Method Details
-
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.
-