Package com.yahoo.application
Class Application.Builder.Container
- java.lang.Object
-
- com.yahoo.application.Application.Builder.Container
-
- Enclosing class:
- Application.Builder
public static class Application.Builder.Container extends Object
-
-
Constructor Summary
Constructors Constructor Description Container()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Application.Builder.Container
client(String binding, Class<? extends com.yahoo.jdisc.service.ClientProvider> client)
Application.Builder.Container
component(Class<?> component)
Application.Builder.Container
component(String id, Class<?> component, com.yahoo.config.ConfigInstance... configs)
Application.Builder.Container
config(com.yahoo.config.ConfigInstance config)
Application.Builder.Container
documentProcessor(Class<? extends com.yahoo.docproc.DocumentProcessor> docproc)
Application.Builder.Container
documentProcessor(String chainName, Class<? extends com.yahoo.docproc.DocumentProcessor> docproc, com.yahoo.config.ConfigInstance... configs)
Application.Builder.Container
documentProcessor(String id, String chainName, Class<? extends com.yahoo.docproc.DocumentProcessor> docproc, com.yahoo.config.ConfigInstance... configs)
Application.Builder.Container
handler(String binding, Class<? extends com.yahoo.jdisc.handler.RequestHandler> handler)
Application.Builder.Container
renderer(String id, Class<? extends com.yahoo.search.rendering.Renderer> renderer, com.yahoo.config.ConfigInstance... configs)
Application.Builder.Container
search(boolean enableSearch)
Application.Builder.Container
searcher(Class<? extends com.yahoo.search.Searcher> searcher)
Application.Builder.Container
searcher(String chainName, Class<? extends com.yahoo.search.Searcher> searcher, com.yahoo.config.ConfigInstance... configs)
Application.Builder.Container
searcher(String id, String chainName, Class<? extends com.yahoo.search.Searcher> searcher, com.yahoo.config.ConfigInstance... configs)
Application.Builder.Container
server(String id, Class<? extends com.yahoo.jdisc.service.ServerProvider> server)
-
-
-
Method Detail
-
documentProcessor
public Application.Builder.Container documentProcessor(Class<? extends com.yahoo.docproc.DocumentProcessor> docproc)
- Parameters:
docproc
- add this docproc to the default document processing chain- Returns:
- builder
-
documentProcessor
public Application.Builder.Container documentProcessor(String chainName, Class<? extends com.yahoo.docproc.DocumentProcessor> docproc, com.yahoo.config.ConfigInstance... configs)
- Parameters:
chainName
- chain name to add docprocdocproc
- add this docproc to the document processing chainconfigs
- local docproc configs- Returns:
- builder
-
documentProcessor
public Application.Builder.Container documentProcessor(String id, String chainName, Class<? extends com.yahoo.docproc.DocumentProcessor> docproc, com.yahoo.config.ConfigInstance... configs)
- Parameters:
id
- component idchainName
- chain name to add docprocdocproc
- add this docproc to the document processing chainconfigs
- local docproc configs- Returns:
- builder
-
search
public Application.Builder.Container search(boolean enableSearch)
- Parameters:
enableSearch
- if true, enable search even without any searchers defined- Returns:
- builder
-
searcher
public Application.Builder.Container searcher(Class<? extends com.yahoo.search.Searcher> searcher)
- Parameters:
searcher
- add this searcher to the default search chain- Returns:
- builder
-
searcher
public Application.Builder.Container searcher(String chainName, Class<? extends com.yahoo.search.Searcher> searcher, com.yahoo.config.ConfigInstance... configs)
- Parameters:
chainName
- chain name to add searchersearcher
- add this searcher to the search chainconfigs
- local searcher configs- Returns:
- builder
-
searcher
public Application.Builder.Container searcher(String id, String chainName, Class<? extends com.yahoo.search.Searcher> searcher, com.yahoo.config.ConfigInstance... configs)
- Parameters:
id
- component idchainName
- chain name to add searchersearcher
- add this searcher to the search chainconfigs
- local searcher configs- Returns:
- builder
-
renderer
public Application.Builder.Container renderer(String id, Class<? extends com.yahoo.search.rendering.Renderer> renderer, com.yahoo.config.ConfigInstance... configs)
- Parameters:
id
- component id, enable template with ?format=id or ?presentation.format=idrenderer
- add this rendererconfigs
- local renderer configs- Returns:
- builder
-
handler
public Application.Builder.Container handler(String binding, Class<? extends com.yahoo.jdisc.handler.RequestHandler> handler)
- Parameters:
binding
- binding stringhandler
- the handler class- Returns:
- builder
-
client
public Application.Builder.Container client(String binding, Class<? extends com.yahoo.jdisc.service.ClientProvider> client)
- Parameters:
binding
- binding stringclient
- the client class- Returns:
- builder
-
server
public Application.Builder.Container server(String id, Class<? extends com.yahoo.jdisc.service.ServerProvider> server)
- Parameters:
id
- server compoent idserver
- the server class- Returns:
- builder
-
component
public Application.Builder.Container component(Class<?> component)
- Parameters:
component
- make this component available to the container- Returns:
- builder
-
component
public Application.Builder.Container component(String id, Class<?> component, com.yahoo.config.ConfigInstance... configs)
- Parameters:
component
- make this component available to the container- Returns:
- builder
-
config
public Application.Builder.Container config(com.yahoo.config.ConfigInstance config)
- Parameters:
config
- add this config to the application- Returns:
- builder
-
-