public class SearchChainRegistry extends com.yahoo.processing.execution.chain.ChainRegistry<Searcher>
A registry can exist in two states:
register(com.yahoo.component.chain.Chain<com.yahoo.search.Searcher>)
Modifier and Type | Field and Description |
---|---|
private SearcherRegistry |
searcherRegistry |
Constructor and Description |
---|
SearchChainRegistry() |
SearchChainRegistry(com.yahoo.component.provider.ComponentRegistry<? extends com.yahoo.component.AbstractComponent> allComponentRegistry) |
Modifier and Type | Method and Description |
---|---|
private SearchChain |
asSearchChain(com.yahoo.component.chain.Chain<Searcher> chain) |
void |
freeze() |
com.yahoo.component.chain.Chain<Searcher> |
getChain(com.yahoo.component.ComponentId id) |
com.yahoo.component.chain.Chain<Searcher> |
getChain(String componentSpecification) |
SearchChain |
getComponent(com.yahoo.component.ComponentId id) |
SearchChain |
getComponent(com.yahoo.component.ComponentSpecification specification) |
SearchChain |
getComponent(String componentSpecification) |
SearcherRegistry |
getSearcherRegistry() |
void |
register(com.yahoo.component.chain.Chain<Searcher> component) |
private SearcherRegistry |
setupSearcherRegistry(com.yahoo.component.provider.ComponentRegistry<? extends com.yahoo.component.AbstractComponent> allComponents) |
com.yahoo.component.chain.Chain<Searcher> |
unregister(com.yahoo.component.chain.Chain<Searcher> component) |
private final SearcherRegistry searcherRegistry
public SearchChainRegistry()
public SearchChainRegistry(com.yahoo.component.provider.ComponentRegistry<? extends com.yahoo.component.AbstractComponent> allComponentRegistry)
public void freeze()
freeze
in class com.yahoo.component.provider.ComponentRegistry<com.yahoo.component.chain.Chain<Searcher>>
public void register(com.yahoo.component.chain.Chain<Searcher> component)
public com.yahoo.component.chain.Chain<Searcher> unregister(com.yahoo.component.chain.Chain<Searcher> component)
private SearcherRegistry setupSearcherRegistry(com.yahoo.component.provider.ComponentRegistry<? extends com.yahoo.component.AbstractComponent> allComponents)
public SearcherRegistry getSearcherRegistry()
public SearchChain getComponent(com.yahoo.component.ComponentId id)
getComponent
in class com.yahoo.component.provider.ComponentRegistry<com.yahoo.component.chain.Chain<Searcher>>
public SearchChain getComponent(com.yahoo.component.ComponentSpecification specification)
getComponent
in class com.yahoo.component.provider.ComponentRegistry<com.yahoo.component.chain.Chain<Searcher>>
public final com.yahoo.component.chain.Chain<Searcher> getChain(String componentSpecification)
public final com.yahoo.component.chain.Chain<Searcher> getChain(com.yahoo.component.ComponentId id)
public SearchChain getComponent(String componentSpecification)
getComponent
in class com.yahoo.component.provider.ComponentRegistry<com.yahoo.component.chain.Chain<Searcher>>
private SearchChain asSearchChain(com.yahoo.component.chain.Chain<Searcher> chain)
Copyright © 2018. All rights reserved.