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
NullPointerExceptionpublic CommandFactory(ValueTypeFactory valueTypeFactory) throws NullPointerException
NullPointerExceptionprivate List<Method> findAllMethods(Class<?> introspected) throws IntrospectionException
IntrospectionExceptionpublic <T> ObjectCommandDescriptor<T> create(Class<T> type) throws IntrospectionException
IntrospectionExceptionprivate <T> MethodDescriptor<T> create(ClassDescriptor<T> classDescriptor, String name, Method method) throws IntrospectionException
IntrospectionExceptionprivate ParameterDescriptor create(Binding binding, Type type, Argument argumentAnn, Option optionAnn, boolean required, Description info, Annotation ann) throws IntrospectionException
IntrospectionExceptionprivate static CommandFactory.Tuple get(Annotation... ab)
private List<ParameterDescriptor> parameters(Class<?> introspected) throws IntrospectionException
IntrospectionExceptionCopyright © 2015 eXo Platform SAS. All Rights Reserved.