Hi Anatole,

AFAIK there's a possibility to use annotations on the Gogoshell commands
to properly define scope and method names.

To my mind this would improve the readability as it's directly
configured in the command classes ....
apart from that I'm not sure if the underscore notation is very common.

All the commands I've seen in older versions are all lowercased.

Just my 2ct

Phil

Am 22.09.2017 um 23:44 schrieb [email protected]:
>          Dictionary<String, Object> props = new Hashtable<>();
>          props.put("osgi.command.scope", "tamaya");
>          props.put("osgi.command.function",
> -                new String[] {"config", "property_get",
> -                        "propertysource_get","propertysources_get"});
> +                new String[] {"tm_config", "tm_property",
> +                        "tm_propertysource","tm_propertysources"});
>          configReg = context.registerService(
>                  ConfigCommands.class,
>                  new ConfigCommands(context), props);
>          props.put("osgi.command.function",
> -                new String[] {"history_get","history_delete",



Reply via email to