public abstract class FeatureCompleterSupport extends Object implements org.apache.karaf.shell.api.console.Completer
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.karaf.features.FeaturesService |
featuresService
Feature service.
|
| Constructor and Description |
|---|
FeatureCompleterSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
acceptsFeature(org.apache.karaf.features.Feature feature)
Method for filtering features.
|
protected void |
add(List<org.apache.karaf.shell.api.console.Candidate> candidates,
org.apache.karaf.features.Feature feature) |
int |
complete(org.apache.karaf.shell.api.console.Session session,
org.apache.karaf.shell.api.console.CommandLine commandLine,
List<String> candidates) |
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) |
void |
setFeaturesService(org.apache.karaf.features.FeaturesService featuresService) |
protected org.apache.karaf.features.FeaturesService featuresService
public void setFeaturesService(org.apache.karaf.features.FeaturesService featuresService)
public int complete(org.apache.karaf.shell.api.console.Session session,
org.apache.karaf.shell.api.console.CommandLine commandLine,
List<String> candidates)
complete in interface org.apache.karaf.shell.api.console.Completerpublic 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)
completeCandidates in interface org.apache.karaf.shell.api.console.Completerprotected void add(List<org.apache.karaf.shell.api.console.Candidate> candidates, org.apache.karaf.features.Feature feature)
protected abstract boolean acceptsFeature(org.apache.karaf.features.Feature feature)
feature - The feature.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.