hello carsten. >So I think adding an adaptTo method to Configuration might do the trick: > >MyTypedConfig = >resource.adaptTo(Configuration.class).adaptTo(MyTypedConfig.class); > >The adaption within the implementation of the configuration class can be >done on the fly by creating a proxy. >We should check if >esource.adaptTo(Configuration.class).adaptTo(MyTypedConfig[].class) >would be implementable as well.
this is nice as well. in this case the Configuration interface could be reduced to an extension of two other interfaces: ValueMap and Adaptable. what is left to be defined is how the string-based access without annotation types is working then in single and multiple variant. it's not a s easy as in DS, because in DS the context is always a service with a flat property list. here we have an aggregated view of a big number of annotation types which may overlap in the defined property names. stefan