Class Application.Builder.Container

    • Constructor Detail

      • Container

        public Container()
    • 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 docproc
        docproc - add this docproc to the document processing chain
        configs - 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 id
        chainName - chain name to add docproc
        docproc - add this docproc to the document processing chain
        configs - 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 searcher
        searcher - add this searcher to the search chain
        configs - 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 id
        chainName - chain name to add searcher
        searcher - add this searcher to the search chain
        configs - 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=id
        renderer - add this renderer
        configs - local renderer configs
        Returns:
        builder
      • handler

        public Application.Builder.Container handler​(String binding,
                                                     Class<? extends com.yahoo.jdisc.handler.RequestHandler> handler)
        Parameters:
        binding - binding string
        handler - the handler class
        Returns:
        builder
      • client

        public Application.Builder.Container client​(String binding,
                                                    Class<? extends com.yahoo.jdisc.service.ClientProvider> client)
        Parameters:
        binding - binding string
        client - 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 id
        server - 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