org.crsh.cmdline
Class CommandFactory

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

public class CommandFactory
extends Object

Version:
$Revision$
Author:
Julien Viet

Nested Class Summary
protected static class CommandFactory.Tuple
          Jus grouping some data for conveniency
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 2011 eXo Platform SAS. All Rights Reserved.