public class AccessorOperation extends AbstractOperation
| Modifier and Type | Field and Description |
|---|---|
protected String |
beanFieldName
Name of bean field, it will be used to create get/set method name.
|
protected Class<?> |
fieldClass |
static char |
get |
static char |
set |
protected boolean |
usJMXEditors |
CID_SEPARATOR, context, log, opArguments, operationName, operationResult, opSignature, sleeCommand| Constructor and Description |
|---|
AccessorOperation(org.jboss.console.twiddle.command.CommandContext context,
org.jboss.logging.Logger log,
AbstractSleeCommand sleeCommand,
String beanFieldName) |
AccessorOperation(org.jboss.console.twiddle.command.CommandContext context,
org.jboss.logging.Logger log,
AbstractSleeCommand sleeCommand,
String beanFieldName,
Class<?> fieldClass) |
AccessorOperation(org.jboss.console.twiddle.command.CommandContext context,
org.jboss.logging.Logger log,
AbstractSleeCommand sleeCommand,
String beanFieldName,
Class<?> fieldClass,
boolean useJMXEditors) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildOperation(gnu.getopt.Getopt opts,
String[] args)
Each operation should create this method.
|
protected Object |
convert(String optArg)
This method is called to convert optArg from string form, if no conversion is needed it should return passed object.
|
protected void |
makeGetter()
User should overide it to provide different name, for instance for boolean \"is\" prefix
|
protected void |
makeSetter() |
addArg, addArg, displayResult, getOpArguments, getOperationName, getOpSignature, invoke, prepareResultText, unfoldArraypublic static final char set
public static final char get
protected String beanFieldName
protected Class<?> fieldClass
protected boolean usJMXEditors
public AccessorOperation(org.jboss.console.twiddle.command.CommandContext context,
org.jboss.logging.Logger log,
AbstractSleeCommand sleeCommand,
String beanFieldName,
Class<?> fieldClass,
boolean useJMXEditors)
public AccessorOperation(org.jboss.console.twiddle.command.CommandContext context,
org.jboss.logging.Logger log,
AbstractSleeCommand sleeCommand,
String beanFieldName,
Class<?> fieldClass)
public AccessorOperation(org.jboss.console.twiddle.command.CommandContext context,
org.jboss.logging.Logger log,
AbstractSleeCommand sleeCommand,
String beanFieldName)
protected void makeGetter()
protected void makeSetter()
protected Object convert(String optArg) throws SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException, org.jboss.console.twiddle.command.CommandException
optArg - NoSuchMethodExceptionSecurityExceptionInvocationTargetExceptionIllegalAccessExceptionInstantiationExceptionIllegalArgumentExceptionorg.jboss.console.twiddle.command.CommandExceptionpublic void buildOperation(gnu.getopt.Getopt opts,
String[] args)
throws org.jboss.console.twiddle.command.CommandException
AbstractOperationbuildOperation in class AbstractOperationorg.jboss.console.twiddle.command.CommandExceptionCopyright © 2016. All rights reserved.