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 <T> List<MethodDescriptor<T>> |
commands(ClassDescriptor<T> descriptor,
Class<?> introspected) |
<T> CommandDescriptorImpl<T> |
create(Class<T> type) |
private <T> MethodDescriptor<T> |
create(ClassDescriptor<T> owner,
Method m) |
private ParameterDescriptor |
create(Object binding,
Type type,
Argument argumentAnn,
Option optionAnn,
boolean required,
Description info,
Annotation ann) |
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 <T> List<MethodDescriptor<T>> commands(ClassDescriptor<T> descriptor, Class<?> introspected) throws IntrospectionException
IntrospectionExceptionpublic <T> CommandDescriptorImpl<T> create(Class<T> type) throws IntrospectionException
IntrospectionExceptionprivate ParameterDescriptor create(Object binding, Type type, Argument argumentAnn, Option optionAnn, boolean required, Description info, Annotation ann) throws IntrospectionException
IntrospectionExceptionprivate static CommandFactory.Tuple get(Annotation... ab)
private <T> MethodDescriptor<T> create(ClassDescriptor<T> owner, Method m) throws IntrospectionException
IntrospectionExceptionprivate List<ParameterDescriptor> parameters(Class<?> introspected) throws IntrospectionException
IntrospectionExceptionCopyright © 2013 eXo Platform SAS. All Rights Reserved.