@Retention(value=CLASS) @Target(value=METHOD) public @interface TableView
Mark a command method return value shall be displayed as a table. e.g
+———————————+———+———+ | ID | ONETIME | TRIGGER | +———————————+———+———+ | __act_app_stop | true | null | | __act_app_app_act_plugin_loaded | true | null | +———————————+———+———+
TableView
can be used in conjunction with PropertySpec
to export only specified fields
Note if a method is marked with neither TableView
nor JsonView
then the console will simply use Object.toString()
to present the data.
JsonView
,
PropertySpec
Copyright © 2014–2018 ActFramework. All rights reserved.