org.ow2.jonas.launcher.felix
Class DefaultConfigurationProvider
java.lang.Object
org.ow2.jonas.launcher.felix.DefaultConfigurationProvider
- All Implemented Interfaces:
- IConfigurationProvider
public class DefaultConfigurationProvider
- extends Object
- implements IConfigurationProvider
Default IConfigurationProvider for Apache Felix.
- Author:
- Guillaume Sauthier
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultConfigurationProvider
public DefaultConfigurationProvider()
- Default constructor.
createSubstitutionEngine
protected org.ow2.util.substitution.ISubstitutionEngine createSubstitutionEngine()
- Can be overridden if required.
- Returns:
- the substituion engine that will be used for variable value resolution.
getConfiguration
public Map<?,?> getConfiguration()
throws IOException
- Specified by:
getConfiguration in interface IConfigurationProvider
- Returns:
- a Felix default configuration.
- Throws:
IOException - configuration not found
getBundles
protected String getBundles(File directory)
throws IOException
- Parameters:
directory - Directory to look for bundles.
- Returns:
- A space (' ') separated list of URLs corresponding to the
files in the given directory. An empty String if the directory
does not exists.
- Throws:
IOException - when a bundle File cannot be turned into an URL
Copyright © 2011 OW2 Consortium. All Rights Reserved.