Package com.yahoo.component.chain.model
Class ChainSpecification
- java.lang.Object
-
- com.yahoo.component.chain.model.ChainSpecification
-
public class ChainSpecification extends Object
Specifies how the components should be selected to create a chain. Immutable.- Author:
- Tony Vaagenes
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChainSpecification.Inheritance
-
Field Summary
Fields Modifier and Type Field Description com.yahoo.component.ComponentId
componentId
Set<com.yahoo.component.ComponentSpecification>
componentReferences
ChainSpecification.Inheritance
inheritance
-
Constructor Summary
Constructors Constructor Description ChainSpecification(com.yahoo.component.ComponentId componentId, ChainSpecification.Inheritance inheritance, Collection<Phase> phases, Set<com.yahoo.component.ComponentSpecification> componentReferences)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChainSpecification
addComponents(Collection<com.yahoo.component.ComponentSpecification> componentSpecifications)
ChainSpecification
addInherits(Collection<com.yahoo.component.ComponentSpecification> inheritedChains)
ChainSpecification
flatten(Resolver<ChainSpecification> allChainSpecifications)
Collection<Phase>
phases()
ChainSpecification
setComponentId(com.yahoo.component.ComponentId newComponentId)
-
-
-
Field Detail
-
componentId
public final com.yahoo.component.ComponentId componentId
-
inheritance
public final ChainSpecification.Inheritance inheritance
-
componentReferences
public final Set<com.yahoo.component.ComponentSpecification> componentReferences
-
-
Constructor Detail
-
ChainSpecification
public ChainSpecification(com.yahoo.component.ComponentId componentId, ChainSpecification.Inheritance inheritance, Collection<Phase> phases, Set<com.yahoo.component.ComponentSpecification> componentReferences)
-
-
Method Detail
-
addComponents
public ChainSpecification addComponents(Collection<com.yahoo.component.ComponentSpecification> componentSpecifications)
-
addInherits
public ChainSpecification addInherits(Collection<com.yahoo.component.ComponentSpecification> inheritedChains)
-
setComponentId
public ChainSpecification setComponentId(com.yahoo.component.ComponentId newComponentId)
-
flatten
public ChainSpecification flatten(Resolver<ChainSpecification> allChainSpecifications)
-
phases
public Collection<Phase> phases()
-
-