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.Resolved, Plugin.Factory.UsingReflection.Instantiator.Unresolved
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Unresolved(Class<? extends Plugin> type)
Creates a new unresolved 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.
-
-
-
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.
-
-