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 ofFeatureListProviders with an associated name.voidsetList(List<NamedBean<FeatureListProvider<T>>> list) A list ofFeatureListProviders with an associated name.Methods inherited from class org.anchoranalysis.feature.bean.list.ReferencingFeatureListProvider
getReferences, onInitialization, setReferencesMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitializedMethods 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:ProviderGets or creates an object of typeT.- Returns:
- the object returned by the provider.
- Throws:
ProvisionFailedException- if the object cannot be returned.
-
getList
A list ofFeatureListProviders with an associated name. -
setList
A list ofFeatureListProviders with an associated name.
-