Package org.crsh.cli.impl.lang

Examples of org.crsh.cli.impl.lang.CommandFactory.create()


  private final CommandDescriptor<Instance<T>> descriptor;

  public ClassShellCommand(Class<T> clazz) throws IntrospectionException {
    CommandFactory factory = new CommandFactory(getClass().getClassLoader());
    this.clazz = clazz;
    this.descriptor = HelpDescriptor.create(factory.create(clazz));
  }

  public CommandDescriptor<Instance<T>> getDescriptor() {
    return descriptor;
  }
View Full Code Here


      hasExplicitReturn = false;
    }

    //
    this.clazz = clazz;
    this.descriptor = HelpDescriptor.create(factory.create(clazz));
    this.hasExplicitReturn = hasExplicitReturn;
  }

  @Override
  public CommandDescriptor<Instance<T>> getDescriptor() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.