public class CommandFactory extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
CommandFactory.Tuple
Jus grouping some data for conveniency
|
Modifier and Type | Field and Description |
---|---|
static CommandFactory |
DEFAULT
.
|
private static Logger |
log
.
|
protected ValueTypeFactory |
valueTypeFactory
.
|
Constructor and Description |
---|
CommandFactory() |
CommandFactory(ClassLoader loader) |
CommandFactory(ValueTypeFactory valueTypeFactory) |
Modifier and Type | Method and Description |
---|---|
private ParameterDescriptor |
create(Binding binding,
Type type,
Argument argumentAnn,
Option optionAnn,
boolean required,
Description info,
Annotation ann) |
<T> ObjectCommandDescriptor<T> |
create(Class<T> type) |
private <T> MethodDescriptor<T> |
create(ClassDescriptor<T> classDescriptor,
String name,
Method method) |
private List<Method> |
findAllMethods(Class<?> introspected) |
private static CommandFactory.Tuple |
get(Annotation... ab) |
private List<ParameterDescriptor> |
parameters(Class<?> introspected) |
public static final CommandFactory DEFAULT
protected final ValueTypeFactory valueTypeFactory
public CommandFactory()
public CommandFactory(ClassLoader loader) throws NullPointerException
NullPointerException
public CommandFactory(ValueTypeFactory valueTypeFactory) throws NullPointerException
NullPointerException
private List<Method> findAllMethods(Class<?> introspected) throws IntrospectionException
IntrospectionException
public <T> ObjectCommandDescriptor<T> create(Class<T> type) throws IntrospectionException
IntrospectionException
private <T> MethodDescriptor<T> create(ClassDescriptor<T> classDescriptor, String name, Method method) throws IntrospectionException
IntrospectionException
private ParameterDescriptor create(Binding binding, Type type, Argument argumentAnn, Option optionAnn, boolean required, Description info, Annotation ann) throws IntrospectionException
IntrospectionException
private static CommandFactory.Tuple get(Annotation... ab)
private List<ParameterDescriptor> parameters(Class<?> introspected) throws IntrospectionException
IntrospectionException
Copyright © 2015 eXo Platform SAS. All Rights Reserved.