public abstract class AbstractApplicationsCompleter extends Object implements org.apache.karaf.shell.api.console.Completer
Modifier and Type | Field and Description |
---|---|
protected ApplicationService |
applicationService |
Constructor and Description |
---|
AbstractApplicationsCompleter() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addAppNames(Application currentApp,
org.apache.karaf.shell.support.completers.StringsCompleter delegate) |
int |
complete(org.apache.karaf.shell.api.console.Session session,
org.apache.karaf.shell.api.console.CommandLine commandLine,
List<String> candidates) |
protected void |
setApplicationService(ApplicationService appSvc) |
protected ApplicationService applicationService
public int complete(org.apache.karaf.shell.api.console.Session session, org.apache.karaf.shell.api.console.CommandLine commandLine, List<String> candidates)
complete
in interface org.apache.karaf.shell.api.console.Completer
session
- the beginning string typed by the usercommandLine
- the position of the cursorcandidates
- the list of completions proposed to the userprotected void setApplicationService(ApplicationService appSvc)
protected abstract void addAppNames(Application currentApp, org.apache.karaf.shell.support.completers.StringsCompleter delegate)
This work is licensed under a Creative Commons Attribution 4.0 International License.