org.crsh.cmdline
Class CommandFactory

java.lang.Object
  extended by org.crsh.cmdline.CommandFactory

public class CommandFactory
extends Object


Nested Class Summary
protected static class CommandFactory.Tuple
          Jus grouping some data for conveniency
 
Field Summary
static CommandFactory DEFAULT
          .
private static org.slf4j.Logger log
          .
private  ValueTypeFactory valueTypeFactory
          .
 
Constructor Summary
private CommandFactory()
           
  CommandFactory(ClassLoader loader)
           
  CommandFactory(ValueTypeFactory valueTypeFactory)
           
 
Method Summary
private
<T> List<MethodDescriptor<T>>
commands(ClassDescriptor descriptor, Class<T> type, Class<?> introspected)
           
protected
<B extends TypeBinding>
ParameterDescriptor<B>
create(B binding, Type type, Argument argumentAnn, Option optionAnn, boolean required, Description info, Annotation ann)
           
<T> ClassDescriptor<T>
create(Class<T> type)
           
<T> MethodDescriptor<T>
create(ClassDescriptor<T> owner, Method m)
           
protected static CommandFactory.Tuple get(Annotation... ab)
           
private  List<ParameterDescriptor<ClassFieldBinding>> parameters(Class<?> introspected)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final CommandFactory DEFAULT
.


log

private static final org.slf4j.Logger log
.


valueTypeFactory

private final ValueTypeFactory valueTypeFactory
.

Constructor Detail

CommandFactory

private CommandFactory()

CommandFactory

public CommandFactory(ClassLoader loader)
               throws NullPointerException
Throws:
NullPointerException

CommandFactory

public CommandFactory(ValueTypeFactory valueTypeFactory)
               throws NullPointerException
Throws:
NullPointerException
Method Detail

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.