-
Notifications
You must be signed in to change notification settings - Fork 5
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.
- Introduction
- ... Motivation
- ... Features
- ... Manifesto
- User manual
- ... Kernel
- ...... Kernel Life Cycle
- ...... Kernel Configuration
- ... Plugin
- ...... Plugin Life cycle
- ...... Request API
- ...... Native Module
- ...... Dependencies
- ... Tests
- ...... Integration Tests
- Advanced topics
- ... Design Best Practices
- ... Multi-Round Plugin
- ... Kernel param aliases
- ... SPI
- ...... DI Provider
- ...... Concern
- ...... Extension
- Definitions
- ... Framework
- ... Entreprise Stack
- ... API
- ... SPI
- ... Library
- ... Inversion of Control
- ... Dependency Injection
- Concepts
- ... UnitModule
- ... GlobalModule
- ... ObjectGraph