Major
Nice to have
Bugfix
Major
Enhancement
Components register their commands in registerCommands.
The commands should already be known to the configuration to be able to determine the authorization tree without instantiating the components.
Code migration
Instead of registerCommands(), the commands must now be specified in the configuration. See e.g. EditComponent.Config.
Component configurations must contain the constant
#!java /** @see com.top_logic.basic.reflect.DefaultMethodInvoker */ Lookup LOOKUP = MethodHandles.lookup();
contain.
In the method
#!java @Override default void modifyIntrinsicCommands(CommandRegistry registry) { super.modifyIntrinsicCommands(registry); }
commands from the CommandHandlerFactory can be registered in the given registry.
Test
TestLayoutComponent#testIntrinsicCommands()