Package net.bytebuddy.build
Interface Plugin.Factory.UsingReflection.Instantiator
- All Known Implementing Classes:
Plugin.Factory.UsingReflection.Instantiator.Ambiguous
,Plugin.Factory.UsingReflection.Instantiator.Resolved
,Plugin.Factory.UsingReflection.Instantiator.Unresolved
- Enclosing class:
- Plugin.Factory.UsingReflection
protected static interface Plugin.Factory.UsingReflection.Instantiator
An instantiator is responsible for invoking a plugin constructor reflectively.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Represents an ambiguously resolved instantiator.static class
An instantiator that is resolved for a given constructor with arguments.static class
An instantiator that is not resolved for creating an instance. -
Method Summary
Modifier and TypeMethodDescriptionInstantiates the represented plugin.Returns either this instantiator or the supplied instantiator, depending on the instances' states.
-
Method Details
-
replaceBy
Plugin.Factory.UsingReflection.Instantiator replaceBy(Plugin.Factory.UsingReflection.Instantiator.Resolved instantiator) Returns either this instantiator or the supplied instantiator, depending on the instances' states.- Parameters:
instantiator
- The alternative instantiator.- Returns:
- The dominant instantiator.
-
instantiate
Plugin instantiate()Instantiates the represented plugin.- Returns:
- The instantiated plugin.
-