org.apache.karaf.demos.command
Class MyCompleter

java.lang.Object
  extended by org.apache.karaf.demos.command.MyCompleter
All Implemented Interfaces:
org.apache.karaf.shell.console.Completer

public class MyCompleter
extends Object
implements org.apache.karaf.shell.console.Completer

My completer.


Constructor Summary
MyCompleter()
           
 
Method Summary
 int complete(String buffer, int cursor, List candidates)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyCompleter

public MyCompleter()
Method Detail

complete

public int complete(String buffer,
                    int cursor,
                    List candidates)
Specified by:
complete in interface org.apache.karaf.shell.console.Completer
Parameters:
buffer - it's the beginning string typed by the user
cursor - it's the position of the cursor
candidates - the list of completions proposed to the user


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.