org.ow2.jonas.launcher.felix
Class DefaultConfigurationProvider

java.lang.Object
  extended by org.ow2.jonas.launcher.felix.DefaultConfigurationProvider
All Implemented Interfaces:
IConfigurationProvider

public class DefaultConfigurationProvider
extends java.lang.Object
implements IConfigurationProvider

Default IConfigurationProvider for Apache Felix.

Author:
Guillaume Sauthier

Constructor Summary
DefaultConfigurationProvider()
          Default constructor.
 
Method Summary
protected  org.ow2.util.substitution.ISubstitutionEngine createSubstitutionEngine()
          Can be overridden if required.
protected  java.lang.String getBundles(java.io.File directory)
           
 java.util.Map<?,?> getConfiguration()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConfigurationProvider

public DefaultConfigurationProvider()
Default constructor.

Method Detail

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<?,?> getConfiguration()
                                    throws java.io.IOException
Specified by:
getConfiguration in interface IConfigurationProvider
Returns:
a Felix default configuration.
Throws:
java.io.IOException - configuration not found

getBundles

protected java.lang.String getBundles(java.io.File directory)
                               throws java.io.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:
java.io.IOException - when a bundle File cannot be turned into an URL


Copyright © 2010 OW2 Consortium. All Rights Reserved.