Class PathsAutoComplete

  • All Implemented Interfaces:
    Attachable, SuggestHandler

    public class PathsAutoComplete
    extends AutoComplete
    Special auto complete class for paths. In standalone mode or in case there's no selected profile the paths are read using :read-children-names(child-type=path).

    In domain mode we try to get the first running server of the selected profile and use /host=foo/server-bar:read-children-names(child-type=path) or :read-children-names(child-type=path) in case there's no running server or no selected profile.

    Since the operation is static it's important to update it when a profile is selected or a server is stopped or started.

    • Constructor Detail

      • PathsAutoComplete

        public PathsAutoComplete()
    • Method Detail

      • updateOperation

        public static void updateOperation​(Environment environment,
                                           Dispatcher dispatcher,
                                           StatementContext statementContext)
        Updates the static operation which is used by this typeahead.