public class ConstructorConfiguration extends Object
select(Class...)
or using the most greedy constructor
greedy()
.Constructor and Description |
---|
ConstructorConfiguration(Class aClass)
Constructs the configuration.
|
Modifier and Type | Method and Description |
---|---|
Object |
create(Scope aScope)
Creates the object in the given scope.
|
ParameterValues |
getParameters() |
List<RequiredInterface> |
getRequiredInterfaces() |
ConstructorConfiguration |
greedy()
Selects the greediest constructor.
|
ConstructorConfiguration |
select(Class... aTypes)
Selects an explicit constructor.
|
ConstructorConfiguration |
setNonPublic(boolean aNonPublic)
Sets whether or no non public constructors are also considered.
|
public ConstructorConfiguration(Class aClass)
aClass
- Class to construct.public ConstructorConfiguration setNonPublic(boolean aNonPublic)
aNonPublic
- public ConstructorConfiguration select(Class... aTypes)
public ConstructorConfiguration greedy()
SystemAssemblyException
- if the greediest constructor cannot be uniquely identified.public ParameterValues getParameters()
public Object create(Scope aScope)
aScope
- Scope containing required interfaces for this object.public List<RequiredInterface> getRequiredInterfaces()
Copyright © 2022. All rights reserved.