Class FeatureCompleterSupport

    • Field Detail

      • featuresService

        protected org.apache.karaf.features.FeaturesService featuresService
        Feature service.
    • Constructor Detail

      • FeatureCompleterSupport

        public FeatureCompleterSupport()
    • Method Detail

      • setFeaturesService

        public void setFeaturesService​(org.apache.karaf.features.FeaturesService featuresService)
      • complete

        public int complete​(org.apache.karaf.shell.api.console.Session session,
                            org.apache.karaf.shell.api.console.CommandLine commandLine,
                            List<String> candidates)
        Specified by:
        complete in interface org.apache.karaf.shell.api.console.Completer
      • completeCandidates

        public void completeCandidates​(org.apache.karaf.shell.api.console.Session session,
                                       org.apache.karaf.shell.api.console.CommandLine commandLine,
                                       List<org.apache.karaf.shell.api.console.Candidate> candidates)
        Specified by:
        completeCandidates in interface org.apache.karaf.shell.api.console.Completer
      • add

        protected void add​(List<org.apache.karaf.shell.api.console.Candidate> candidates,
                           org.apache.karaf.features.Feature feature)
      • acceptsFeature

        protected abstract boolean acceptsFeature​(org.apache.karaf.features.Feature feature)
        Method for filtering features.
        Parameters:
        feature - The feature.
        Returns:
        True if feature should be available in completer.