Skip to content

Kernel param aliases

Pierre T. edited this page Oct 14, 2015 · 5 revisions

Aliases allow you to reuse Nuun plugins with your params conventions.

For instance if you use a plugin from another plugin distribution which use key like distro1.param1. You can create an alias myDistro.param1 for the parameter key. Like this your user will have a more coherent experience.

For adding aliases override the following method in your plugin:

@Override
public Map<String, String> kernelParametersAliases() {
    Map<String, String> aliases = new HashMap<String, String>();
    aliases.put(KEY, ALIAS);
    return aliases;
}

Then all the plugins will be able to access the value of KEY using ALIAS.

Content

Clone this wiki locally