@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Factory.UsingReflection.Instantiator.Resolved extends Object implements Plugin.Factory.UsingReflection.Instantiator
Plugin.Factory.UsingReflection.Instantiator.Ambiguous, Plugin.Factory.UsingReflection.Instantiator.Resolved, Plugin.Factory.UsingReflection.Instantiator.Unresolved
Modifier | Constructor and Description |
---|---|
protected |
Resolved(Constructor<? extends Plugin> constructor,
List<?> arguments)
Creates a new resolved constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Constructor<? extends Plugin> |
getConstructor()
Returns the resolved constructor.
|
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.
|
protected Resolved(Constructor<? extends Plugin> constructor, List<?> arguments)
constructor
- The represented constructor.arguments
- The constructor arguments.protected Constructor<? extends Plugin> getConstructor()
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
Copyright © 2014–2025. All rights reserved.