Package com.yahoo.component.chain.model
Class ChainSpecification
- java.lang.Object
-
- com.yahoo.component.chain.model.ChainSpecification
-
@Immutable public class ChainSpecification extends java.lang.Object
Specifies how the components should be selected to create a chain.- 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
java.util.Set<com.yahoo.component.ComponentSpecification>
componentReferences
ChainSpecification.Inheritance
inheritance
-
Constructor Summary
Constructors Constructor Description ChainSpecification(com.yahoo.component.ComponentId componentId, ChainSpecification.Inheritance inheritance, java.util.Collection<Phase> phases, java.util.Set<com.yahoo.component.ComponentSpecification> componentReferences)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChainSpecification
addComponents(java.util.Collection<com.yahoo.component.ComponentSpecification> componentSpecifications)
ChainSpecification
addInherits(java.util.Collection<com.yahoo.component.ComponentSpecification> inheritedChains)
ChainSpecification
flatten(Resolver<ChainSpecification> allChainSpecifications)
java.util.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 java.util.Set<com.yahoo.component.ComponentSpecification> componentReferences
-
-
Constructor Detail
-
ChainSpecification
public ChainSpecification(com.yahoo.component.ComponentId componentId, ChainSpecification.Inheritance inheritance, java.util.Collection<Phase> phases, java.util.Set<com.yahoo.component.ComponentSpecification> componentReferences)
-
-
Method Detail
-
addComponents
public ChainSpecification addComponents(java.util.Collection<com.yahoo.component.ComponentSpecification> componentSpecifications)
-
addInherits
public ChainSpecification addInherits(java.util.Collection<com.yahoo.component.ComponentSpecification> inheritedChains)
-
setComponentId
public ChainSpecification setComponentId(com.yahoo.component.ComponentId newComponentId)
-
flatten
public ChainSpecification flatten(Resolver<ChainSpecification> allChainSpecifications)
-
phases
public java.util.Collection<Phase> phases()
-
-