org.apache.felix.gogo.commands.basic
Class DefaultActionPreparator
java.lang.Object
org.apache.felix.gogo.commands.basic.DefaultActionPreparator
- All Implemented Interfaces:
- ActionPreparator
- Direct Known Subclasses:
- BlueprintCommand.BlueprintActionPreparator
public class DefaultActionPreparator
- extends Object
- implements ActionPreparator
|
Method Summary |
protected Object |
convert(Action action,
org.apache.felix.service.command.CommandSession session,
Object value,
Type toType)
|
static int |
length(String str)
|
protected String |
loadDescription(Class clazz,
String desc)
|
boolean |
prepare(Action action,
org.apache.felix.service.command.CommandSession session,
List<Object> params)
|
static void |
printFormatted(String prefix,
String str,
int termWidth,
PrintStream out)
|
static void |
printFormatted(String prefix,
String str,
int termWidth,
PrintStream out,
boolean prefixFirstLine)
|
protected void |
printUsage(org.apache.felix.service.command.CommandSession session,
Action action,
Map<Option,Field> optionsMap,
Map<Argument,Field> argsMap,
PrintStream out)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HELP
public static final Option HELP
DefaultActionPreparator
public DefaultActionPreparator()
prepare
public boolean prepare(Action action,
org.apache.felix.service.command.CommandSession session,
List<Object> params)
throws Exception
- Specified by:
prepare in interface ActionPreparator
- Throws:
Exception
printUsage
protected void printUsage(org.apache.felix.service.command.CommandSession session,
Action action,
Map<Option,Field> optionsMap,
Map<Argument,Field> argsMap,
PrintStream out)
loadDescription
protected String loadDescription(Class clazz,
String desc)
printFormatted
public static void printFormatted(String prefix,
String str,
int termWidth,
PrintStream out)
printFormatted
public static void printFormatted(String prefix,
String str,
int termWidth,
PrintStream out,
boolean prefixFirstLine)
length
public static int length(String str)
convert
protected Object convert(Action action,
org.apache.felix.service.command.CommandSession session,
Object value,
Type toType)
throws Exception
- Throws:
Exception
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.