org.jclouds.karaf.commands.compute.completer
Class RecipeCompleter

java.lang.Object
  extended by org.jclouds.karaf.commands.support.GenericCompleterSupport<RecipeProvider,String>
      extended by org.jclouds.karaf.commands.compute.completer.RecipeCompleter
All Implemented Interfaces:
org.apache.karaf.shell.console.Completer, Cacheable<RecipeProvider>

public class RecipeCompleter
extends GenericCompleterSupport<RecipeProvider,String>
implements Cacheable<RecipeProvider>


Field Summary
 
Fields inherited from class org.jclouds.karaf.commands.support.GenericCompleterSupport
API_OPTION, cache, cacheProvider, delegate, NAME_OPTION, PROVIDER_OPTION
 
Constructor Summary
RecipeCompleter()
           
 
Method Summary
 int complete(String buffer, int cursor, List<String> candidates)
           
 String getCacheableKey(RecipeProvider type)
           
 void init()
           
 void updateOnAdded(RecipeProvider recipeProvider)
           
 
Methods inherited from class org.jclouds.karaf.commands.support.GenericCompleterSupport
getCacheProvider, setCacheProvider, updateOnRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jclouds.karaf.cache.Cacheable
updateOnRemoved
 

Constructor Detail

RecipeCompleter

public RecipeCompleter()
Method Detail

init

public void init()

complete

public int complete(String buffer,
                    int cursor,
                    List<String> candidates)
Specified by:
complete in interface org.apache.karaf.shell.console.Completer
Overrides:
complete in class GenericCompleterSupport<RecipeProvider,String>

getCacheableKey

public String getCacheableKey(RecipeProvider type)
Specified by:
getCacheableKey in class GenericCompleterSupport<RecipeProvider,String>

updateOnAdded

public void updateOnAdded(RecipeProvider recipeProvider)
Specified by:
updateOnAdded in interface Cacheable<RecipeProvider>


Copyright © 2013. All Rights Reserved.