Class FeatureConfigInstaller
- java.lang.Object
-
- org.apache.karaf.features.internal.service.FeatureConfigInstaller
-
public class FeatureConfigInstaller extends Object
-
-
Constructor Summary
Constructors Constructor Description FeatureConfigInstaller(org.osgi.service.cm.ConfigurationAdmin configAdmin)
FeatureConfigInstaller(org.osgi.service.cm.ConfigurationAdmin configAdmin, boolean configCfgStore)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
installFeatureConfigs(Feature feature)
protected static String
substFinalName(String finalname)
Substitute variables in the final name and append prefix if necessary.void
uninstallFeatureConfigs(Feature feature)
protected void
updateStorage(org.apache.karaf.features.internal.service.FeatureConfigInstaller.ConfigId cid, org.apache.felix.utils.properties.TypedProperties props, boolean append, boolean jsonFormat)
-
-
-
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.- If the final name does not start with '${' it is prefixed with karaf.base (+ file separator).
- It substitute also all variables (scheme ${...}) with the respective configuration values and system properties.
- All unknown variables kept unchanged.
- 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.
-
-