org.ow2.jonas.launcher.jonas
Class DefaultConfigurationProvider
java.lang.Object
org.ow2.jonas.launcher.jonas.DefaultConfigurationProvider
- All Implemented Interfaces:
- IConfigurationProvider
public class DefaultConfigurationProvider
- extends java.lang.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 java.util.Map<java.lang.String,java.lang.String> getConfiguration()
throws java.io.IOException
- Specified by:
getConfiguration in interface IConfigurationProvider
- Returns:
- a Felix default configuration.
- Throws:
java.io.IOException - configuration not found
initLevelBundles
protected void initLevelBundles(java.util.Properties autoDeployProperties)
throws java.io.IOException
- Throws:
java.io.IOException
getBundleLocationsFromDirectory
protected java.util.List<java.lang.String> getBundleLocationsFromDirectory(java.io.File directory)
throws java.io.IOException
- Parameters:
directory - Directory to look for bundles.
- Returns:
- A list of URLs corresponding to the
files in the given directory. An empty String if the directory
does not exists.
- Throws:
java.io.IOException - when a bundle File cannot be turned into an URL
getAutoInstallBundles
public java.util.SortedMap<java.lang.Integer,java.util.List<java.lang.String>> getAutoInstallBundles()
- Specified by:
getAutoInstallBundles in interface IConfigurationProvider
- Returns:
- list of the bundles to install and add it to the start level
getAutoStartBundles
public java.util.SortedMap<java.lang.Integer,java.util.List<java.lang.String>> getAutoStartBundles()
- Specified by:
getAutoStartBundles in interface IConfigurationProvider
- Returns:
- map of the bundles to "automatically start for a given level"
getFrameworkClassLoader
public java.lang.ClassLoader getFrameworkClassLoader(java.lang.ClassLoader parentClassLoader)
- Specified by:
getFrameworkClassLoader in interface IConfigurationProvider
Copyright © 2012 OW2 Consortium. All Rights Reserved.