### _Why are the changes needed?_ - apply the usage of `ReflectUtils` and `Dyn*` to the modules of engines and plugins (eg. Spark engine, Authz plugin, lineage plugin, beeline) - remove similar redundant methods for calling reflected methods or getting field values - unified reflection helper methods with type casting support, as `getField[T]` for getting field values from `getFields`, `invokeAs[T]` for invoking methods in `getMethods`. ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request Closes #4879 from bowenliang123/reflect-use. Closes #4879 c685fb67d [liangbowen] bug fix for "Cannot bind static field options" when executing "bin/beeline" fc1fdf1de [liangbowen] import 59c3dd032 [liangbowen] comment c435c131d [liangbowen] reflect util usage Authored-by: liangbowen <liangbowen@gf.com.cn> Signed-off-by: liangbowen <liangbowen@gf.com.cn> |
||
|---|---|---|
| .. | ||
| src | ||
| pom.xml | ||