org.apache.karaf.features.command.completers
Class FeatureCompleterSupport
java.lang.Object
org.apache.karaf.features.command.completers.FeatureCompleterSupport
- All Implemented Interfaces:
- Completer
- Direct Known Subclasses:
- AllFeatureCompleter, AvailableFeatureCompleter, InstalledFeatureCompleter
public abstract class FeatureCompleterSupport
- extends java.lang.Object
- implements Completer
Base completer for feature commands.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
featuresService
protected FeaturesService featuresService
- Feature service.
FeatureCompleterSupport
public FeatureCompleterSupport()
setFeaturesService
public void setFeaturesService(FeaturesService featuresService)
complete
public int complete(java.lang.String buffer,
int cursor,
java.util.List candidates)
- Specified by:
complete
in interface Completer
acceptsFeature
protected abstract boolean acceptsFeature(Feature feature)
- Method for filtering features.
- Parameters:
feature
- The feature.
- Returns:
- True if feature should be available in completer.
Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.