Class FeatureConfigInstaller


  • public class FeatureConfigInstaller
    extends Object
    • Constructor Detail

      • FeatureConfigInstaller

        public FeatureConfigInstaller​(org.osgi.service.cm.ConfigurationAdmin configAdmin)
      • FeatureConfigInstaller

        public FeatureConfigInstaller​(org.osgi.service.cm.ConfigurationAdmin configAdmin,
                                      boolean configCfgStore)
    • Method Detail

      • installFeatureConfigs

        public void installFeatureConfigs​(Feature feature)
                                   throws IOException,
                                          org.osgi.framework.InvalidSyntaxException
        Throws:
        IOException
        org.osgi.framework.InvalidSyntaxException
      • uninstallFeatureConfigs

        public void uninstallFeatureConfigs​(Feature feature)
                                     throws IOException,
                                            org.osgi.framework.InvalidSyntaxException
        Throws:
        IOException
        org.osgi.framework.InvalidSyntaxException
      • substFinalName

        protected static String substFinalName​(String finalname)
        Substitute variables in the final name and append prefix if necessary.
        1. If the final name does not start with '${' it is prefixed with karaf.base (+ file separator).
        2. It substitute also all variables (scheme ${...}) with the respective configuration values and system properties.
        3. All unknown variables kept unchanged.
        4. If the substituted string starts with an variable that could not be substituted, it will be prefixed with karaf.base (+ file separator), too.
        Parameters:
        finalname - The final name that should be processed.
        Returns:
        the location in the file system that should be accesses.
      • updateStorage

        protected void updateStorage​(org.apache.karaf.features.internal.service.FeatureConfigInstaller.ConfigId cid,
                                     org.apache.felix.utils.properties.TypedProperties props,
                                     boolean append,
                                     boolean jsonFormat)
                              throws Exception
        Throws:
        Exception