public class DefaultActionPreparator extends Object implements ActionPreparator
Constructor and Description |
---|
DefaultActionPreparator() |
Modifier and Type | Method and Description |
---|---|
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) |
public static final Option HELP
public boolean prepare(Action action, org.apache.felix.service.command.CommandSession session, List<Object> params) throws Exception
prepare
in interface ActionPreparator
Exception
protected void printUsage(org.apache.felix.service.command.CommandSession session, Action action, Map<Option,Field> optionsMap, Map<Argument,Field> argsMap, PrintStream out)
public static void printFormatted(String prefix, String str, int termWidth, PrintStream out)
public static void printFormatted(String prefix, String str, int termWidth, PrintStream out, boolean prefixFirstLine)
public static int length(String str)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.