public abstract class GenericCompleterSupport<T,K> extends Object implements org.apache.karaf.shell.console.Completer, Cacheable<T>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
API_OPTION |
protected com.google.common.collect.Multimap<String,String> |
cache |
protected CacheProvider |
cacheProvider |
protected org.apache.karaf.shell.console.completer.StringsCompleter |
delegate |
protected static String |
NAME_OPTION |
protected static String |
PROVIDER_OPTION |
| Constructor and Description |
|---|
GenericCompleterSupport() |
| Modifier and Type | Method and Description |
|---|---|
int |
complete(String buffer,
int cursor,
List<String> candidates) |
abstract K |
getCacheableKey(T type) |
CacheProvider |
getCacheProvider() |
void |
setCacheProvider(CacheProvider cacheProvider) |
void |
updateOnRemoved(T type) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdateOnAddedprotected static final String NAME_OPTION
protected static final String PROVIDER_OPTION
protected static final String API_OPTION
protected final org.apache.karaf.shell.console.completer.StringsCompleter delegate
protected CacheProvider cacheProvider
public int complete(String buffer, int cursor, List<String> candidates)
complete in interface org.apache.karaf.shell.console.Completerpublic void updateOnRemoved(T type)
updateOnRemoved in interface Cacheable<T>public CacheProvider getCacheProvider()
public void setCacheProvider(CacheProvider cacheProvider)
Copyright © 2012. All Rights Reserved.