Class DefinedNamed<T extends FeatureInput>
- Type Parameters:
T
- the feature input-type
- All Implemented Interfaces:
Provider<FeatureList<T>>
Specifies features via a list of names and associated with features.
The associated name is assigned to each feature it is associated with.
Note that if multiple features are associated with the same name (i.e. multiple entries in the
list in NamedBean<FeatureListProvider<T>>
this can result with multiple features with an
identical custom-name.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()
Gets or creates an object of typeT
.getList()
A list ofFeatureListProvider
s with an associated name.void
setList
(List<NamedBean<FeatureListProvider<T>>> list) A list ofFeatureListProvider
s with an associated name.Methods inherited from class org.anchoranalysis.feature.bean.list.ReferencingFeatureListProvider
getReferences, onInitialization, setReferences
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
DefinedNamed
public DefinedNamed()
-
-
Method Details
-
get
Description copied from interface:Provider
Gets or creates an object of typeT
.- Returns:
- the object returned by the provider.
- Throws:
ProvisionFailedException
- if the object cannot be returned.
-
getList
A list ofFeatureListProvider
s with an associated name. -
setList
A list ofFeatureListProvider
s with an associated name.
-