> Am 19.07.2016 um 17:54 schrieb Anatole Tresch <[email protected]>:
> 
>  - I have some code, that defines a namespace, e.g. called *logger*
>   - now I want to traverse/evaluate all (direct) child keys of logger,
>   e.g. I want to extract the information that logger.mylogger1 and
>   logger.mylogger2 has been configured. If I cannot access the properties,
>   I would like to see some query mechanism at least... any propsals?


for (String key : config.getProperties().keySet()) {
  if (key.startswith(„logger.“)) {
    doWhateverYouLikeWith(key);
  }
}

Is that what you meant?

LieGrue,
strub

Reply via email to