Configuration API: Switch to config annotation types instead of ValueMap
Description
as proposed on the sling mailing list by carsten a refactoring of the API for accessing configuration values would be useful: use an annotation type instead of a ValueMap.
example:
and accessing the configuration:
perhaps we can even find a way to combine both steps in a single step, bypassing the Configuration.class or making its use optional.
this is a major and incompatible refactoring of the API, but because none of the APIs have an 1.0 release we can still do it.
Activity
Show:
Stefan Seifert
December 9, 2016, 8:44 PM
this is solved as part of and sling context-aware configuration
Stefan Seifert
October 17, 2014, 10:08 AM
maybe we need support for some sort of factory configurations as well, see http://apache-sling.73963.n3.nabble.com/PROPOSAL-Context-specific-configuration-for-Apache-Sling-Multitenancy-tp4041134p4042084.html
Duplicate