T
- the feature input-typepublic class DefinedNamed<T extends FeatureInput> extends ReferencingFeatureListProvider<T>
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.
Constructor and Description |
---|
DefinedNamed() |
Modifier and Type | Method and Description |
---|---|
FeatureList<T> |
get()
Gets or creates an object of type
T . |
List<NamedBean<FeatureListProvider<T>>> |
getList()
A list of
FeatureListProvider s with an associated name. |
void |
setList(List<NamedBean<FeatureListProvider<T>>> list)
A list of
FeatureListProvider s with an associated name. |
getReferences, onInitialization, setReferences
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public FeatureList<T> get() throws ProvisionFailedException
Provider
T
.ProvisionFailedException
- if the object cannot be returned.public List<NamedBean<FeatureListProvider<T>>> getList()
FeatureListProvider
s with an associated name.public void setList(List<NamedBean<FeatureListProvider<T>>> list)
FeatureListProvider
s with an associated name.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.