org.crsh.cmdline
Class CommandFactory
java.lang.Object
org.crsh.cmdline.CommandFactory
public class CommandFactory
- extends Object
|
Nested Class Summary |
protected static class |
CommandFactory.Tuple
Jus grouping some data for conveniency |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT
public static final CommandFactory DEFAULT
- .
log
private static final org.slf4j.Logger log
- .
valueTypeFactory
private final ValueTypeFactory valueTypeFactory
- .
CommandFactory
private CommandFactory()
CommandFactory
public CommandFactory(ClassLoader loader)
throws NullPointerException
- Throws:
NullPointerException
CommandFactory
public CommandFactory(ValueTypeFactory valueTypeFactory)
throws NullPointerException
- Throws:
NullPointerException
commands
private <T> List<MethodDescriptor<T>> commands(ClassDescriptor descriptor,
Class<T> type,
Class<?> introspected)
throws IntrospectionException
- Throws:
IntrospectionException
create
public <T> ClassDescriptor<T> create(Class<T> type)
throws IntrospectionException
- Throws:
IntrospectionException
create
protected <B extends TypeBinding> ParameterDescriptor<B> create(B binding,
Type type,
Argument argumentAnn,
Option optionAnn,
boolean required,
Description info,
Annotation ann)
throws IntrospectionException
- Throws:
IntrospectionException
get
protected static CommandFactory.Tuple get(Annotation... ab)
create
public <T> MethodDescriptor<T> create(ClassDescriptor<T> owner,
Method m)
throws IntrospectionException
- Throws:
IntrospectionException
parameters
private List<ParameterDescriptor<ClassFieldBinding>> parameters(Class<?> introspected)
throws IntrospectionException
- Throws:
IntrospectionException
Copyright © 2012 eXo Platform SAS. All Rights Reserved.