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;
}