public class SimpleConfiguratorImpl extends java.lang.Object implements Configurator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BASE_TIMESTAMP_FILE_BUNDLESINFO |
static java.lang.String |
KEY_BUNDLESINFO_TIMESTAMP |
static java.lang.String |
KEY_EXT_TIMESTAMP |
static java.lang.String |
PROP_IGNORE_USER_CONFIGURATION |
| Constructor and Description |
|---|
SimpleConfiguratorImpl(BundleContext context,
Bundle bundle) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyConfiguration()
Apply configuration read from the previously used url to the OSGi
environment currently running.
|
void |
applyConfiguration(java.net.URL url)
Apply configuration read from the specified url to the OSGi
environment currently running.
|
java.net.URL |
chooseConfigurationURL(java.net.URL relativeURL,
java.net.URL[] configURL)
This method is public for testing purposes only.
|
java.net.URL |
getConfigurationURL() |
static long[] |
getCurrentBundlesInfoBaseTimestamp(java.io.File sharedBundlesInfo) |
java.net.URL |
getUrlInUse()
Return the url in use.
|
public static final java.lang.String BASE_TIMESTAMP_FILE_BUNDLESINFO
public static final java.lang.String KEY_BUNDLESINFO_TIMESTAMP
public static final java.lang.String KEY_EXT_TIMESTAMP
public static final java.lang.String PROP_IGNORE_USER_CONFIGURATION
public SimpleConfiguratorImpl(BundleContext context,
Bundle bundle)
public java.net.URL getConfigurationURL()
throws java.io.IOException
java.io.IOExceptionpublic java.net.URL chooseConfigurationURL(java.net.URL relativeURL,
java.net.URL[] configURL)
throws java.net.MalformedURLException
relativeURL - - a relative URL of the configurationconfigURL - - an array of parent config URLs to which relativeURL can be appended.java.net.MalformedURLExceptionpublic static long[] getCurrentBundlesInfoBaseTimestamp(java.io.File sharedBundlesInfo)
public void applyConfiguration(java.net.URL url)
throws java.io.IOException
ConfiguratorapplyConfiguration in interface Configuratorurl - URL to be read.java.io.IOException - - If reading information from the specified url fails.public void applyConfiguration()
throws java.io.IOException
ConfiguratorapplyConfiguration in interface Configuratorjava.io.IOException - - If reading information from the specified url fails.public java.net.URL getUrlInUse()
ConfiguratorgetUrlInUse in interface Configurator