org.apache.tamaya.integration.osgi

## Interface OSGIConfigRootMapper

-     public interface OSGIConfigRootMapper

  Mapping function for mapping Tamaya configuration sections to OSGI pids.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getTamayaConfigRoot(String pid, String factoryPid)` Map the given OSGI pid to a corresponding configuration section in Tamaya.

- - ### Method Detail

    - #### getTamayaConfigRoot

          String getTamayaConfigRoot(String pid,
                                   String factoryPid)

      Map the given OSGI pid to a corresponding configuration section in Tamaya. Es an example (and this is also the default implemented) a configuration mapping for `pid/factoryPid==myBundle` could be `[bundle:myBundle]`. This mapping is used as a prefix when collecting the corresponding entries for the OSGI configuration.
      Parameters:
        `pid` - the OSGI pid, or null
        `factoryPid` - the OSGI factoryPid, or null
      Returns:
        return the corresponding config root section. For ommitting any root section simply return an empty String.

Copyright © 2014–2016 Apache Software Foundation. All rights reserved.