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
private static org.slf4j.Logger log
          .
 
Constructor Summary
CommandFactory()
           
 
Method Summary
protected static
<B extends TypeBinding>
ParameterDescriptor<B>
create(B binding, Type type, Argument argumentAnn, Option optionAnn, boolean required, Description info, Annotation ann)
           
static
<T> ClassDescriptor<T>
create(Class<T> type)
           
static
<T> MethodDescriptor<T>
create(ClassDescriptor<T> owner, Method m)
           
protected static CommandFactory.Tuple get(Annotation... ab)
           
private static 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

log

private static final org.slf4j.Logger log
.

Constructor Detail

CommandFactory

public CommandFactory()
Method Detail

create

public static <T> ClassDescriptor<T> create(Class<T> type)
                                 throws IntrospectionException
Throws:
IntrospectionException

create

protected static <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 static <T> MethodDescriptor<T> create(ClassDescriptor<T> owner,
                                             Method m)
                                  throws IntrospectionException
Throws:
IntrospectionException

parameters

private static List<ParameterDescriptor<ClassFieldBinding>> parameters(Class<?> introspected)
                                                                throws IntrospectionException
Throws:
IntrospectionException


Copyright © 2012 eXo Platform SAS. All Rights Reserved.