@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Factory.UsingReflection.Instantiator.Resolved extends java.lang.Object implements Plugin.Factory.UsingReflection.Instantiator
Plugin.Factory.UsingReflection.Instantiator.Resolved, Plugin.Factory.UsingReflection.Instantiator.Unresolved
Modifier and Type | Field and Description |
---|---|
private java.util.List<?> |
arguments
The constructor arguments.
|
private java.lang.reflect.Constructor<? extends Plugin> |
constructor
The represented constructor.
|
Modifier | Constructor and Description |
---|---|
protected |
Resolved(java.lang.reflect.Constructor<? extends Plugin> constructor,
java.util.List<?> arguments)
Creates a new resolved constructor.
|
Modifier and Type | Method and 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.
|
private final java.lang.reflect.Constructor<? extends Plugin> constructor
private final java.util.List<?> arguments
protected Resolved(java.lang.reflect.Constructor<? extends Plugin> constructor, java.util.List<?> arguments)
constructor
- The represented constructor.arguments
- The constructor arguments.public Plugin.Factory.UsingReflection.Instantiator replaceBy(Plugin.Factory.UsingReflection.Instantiator.Resolved instantiator)
replaceBy
in interface Plugin.Factory.UsingReflection.Instantiator
instantiator
- The alternative instantiator.public Plugin instantiate()
instantiate
in interface Plugin.Factory.UsingReflection.Instantiator