org.apache.karaf.features.command.completers
Class FeatureCompleterSupport
java.lang.Object
org.apache.karaf.features.command.completers.FeatureCompleterSupport
- All Implemented Interfaces:
- org.apache.karaf.shell.console.Completer
- Direct Known Subclasses:
- AllFeatureCompleter, AvailableFeatureCompleter, InstalledFeatureCompleter
public abstract class FeatureCompleterSupport
- extends Object
- implements org.apache.karaf.shell.console.Completer
Base completer for feature commands.
|
Field Summary |
protected org.apache.karaf.features.FeaturesService |
featuresService
Feature service. |
|
Method Summary |
protected abstract boolean |
acceptsFeature(org.apache.karaf.features.Feature feature)
Method for filtering features. |
int |
complete(String buffer,
int cursor,
List candidates)
|
void |
setFeaturesService(org.apache.karaf.features.FeaturesService featuresService)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
featuresService
protected org.apache.karaf.features.FeaturesService featuresService
- Feature service.
FeatureCompleterSupport
public FeatureCompleterSupport()
setFeaturesService
public void setFeaturesService(org.apache.karaf.features.FeaturesService featuresService)
complete
public int complete(String buffer,
int cursor,
List candidates)
- Specified by:
complete in interface org.apache.karaf.shell.console.Completer
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.
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.