org.apache.karaf.features.command.completers
Class FeatureCompleterSupport

java.lang.Object
  extended by 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.


Field Summary
protected  FeaturesService featuresService
          Feature service.
 
Constructor Summary
FeatureCompleterSupport()
           
 
Method Summary
protected abstract  boolean acceptsFeature(Feature feature)
          Method for filtering features.
 int complete(java.lang.String buffer, int cursor, java.util.List candidates)
           
 void setFeaturesService(FeaturesService featuresService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

featuresService

protected FeaturesService featuresService
Feature service.

Constructor Detail

FeatureCompleterSupport

public FeatureCompleterSupport()
Method Detail

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.