Package org.eclipse.update.configurator
Interface IPlatformConfiguration
Deprecated.
The org.eclipse.update component has been replaced by Equinox p2.
This API will be deleted in a future release. See bug 311590 for details.
Platform configuration interface. Represents the runtime
configuration used by the Eclipse platform. Any configuration
changes do not take effect until next startup of the Eclipse
platform.
Do not provide implementations of this interface or its nested interfaces. Use the factory methods on IPlatformConfigurationFactory to create a IPlatformConfiguration, then use the factory methods on the IPlatformConfiguration to create instances of ISiteEntry,IFeatureEntry and ISitePolicy.
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
- Since:
- 3.0
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Deprecated.Feature entry.static interface
Deprecated.Configuration entry representing an install site.static interface
Deprecated.Site policy. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Configures the feature entry.void
Deprecated.Configures the specified site entry.void
configureSite
(IPlatformConfiguration.ISiteEntry entry, boolean replace) Deprecated.Configures the specified site entry.createFeatureEntry
(String id, String version, String pluginVersion, boolean primary, String application, URL[] root) Deprecated.Create a feature entrycreateFeatureEntry
(String id, String version, String pluginIdentifier, String pluginVersion, boolean primary, String application, URL[] root) Deprecated.Create a feature entrycreateSiteEntry
(URL url, IPlatformConfiguration.ISitePolicy policy) Deprecated.Create a site entrycreateSitePolicy
(int type, String[] list) Deprecated.Create a site policy.Deprecated.Locates the specified feature entry.findConfiguredSite
(URL url) Deprecated.Returns a site entry matching the specified URLString[]
Deprecated.Do not use this method.long
Deprecated.Returns a stamp reflecting the current state of the configuration.Deprecated.Returns the URL location of the configuration informationDeprecated.Returns a list of configured feature entries.Deprecated.Returns configured site entrieslong
Deprecated.Do not use this method.URL[]
Deprecated.Computes the plug-in path for this configuration.long
Deprecated.Do not use this methodDeprecated.Returns the identifier of the configured primary feature.boolean
Deprecated.Returns an indication whether the configuration is transient.void
isTransient
(boolean value) Deprecated.Indicates whether the configuration is transient or not.boolean
Deprecated.Returns an indication whether the configuration can be updated.void
refresh()
Deprecated.Called to refresh the configuration information.void
save()
Deprecated.Called to save the configuration informationvoid
Deprecated.Called to save the configuration information in the specified locationvoid
setBootstrapPluginLocation
(String id, URL location) Deprecated.Do not use this method.void
Deprecated.Unconfigures the specified feature entry if it exists.void
Deprecated.Unconfigures the specified entry.
-
Method Details
-
createSiteEntry
IPlatformConfiguration.ISiteEntry createSiteEntry(URL url, IPlatformConfiguration.ISitePolicy policy) Deprecated.Create a site entry- Parameters:
url
- site URLpolicy
- site policy- Returns:
- created site entry
- Since:
- 2.0
-
createSitePolicy
Deprecated.Create a site policy. The policy determines the way the site plug-in are processed at startpu- Parameters:
type
- policy typelist
- an array of site-relative paths representing the inclusion/ exclusion list- Returns:
- created site policy entry
- Since:
- 2.0
-
createFeatureEntry
IPlatformConfiguration.IFeatureEntry createFeatureEntry(String id, String version, String pluginVersion, boolean primary, String application, URL[] root) Deprecated.Create a feature entry- Parameters:
id
- feature identifier. Must not benull
.version
- feature version (as String). Can benull
.pluginVersion
- version of the feature plugin (as String). Can benull
.primary
-true
if the feature is defined as a primary feature, otherwisefalse
.application
- identifier of the application to run when this feature is the primary feature. Can benull
. If specified, the identifier must represent a valid extension registered in theorg.eclipse.core.runtime.applications
extension point.root
- an array of URLs to feature root directories. These are URLs to install locations for the feature plugin and its fragments. Can benull
.- Returns:
- create feature entry
- Since:
- 2.0
-
createFeatureEntry
IPlatformConfiguration.IFeatureEntry createFeatureEntry(String id, String version, String pluginIdentifier, String pluginVersion, boolean primary, String application, URL[] root) Deprecated.Create a feature entry- Parameters:
id
- feature identifier. Must not benull
.version
- feature version (as String). Can benull
.pluginIdentifier
- identifier of the feature plugin (as String). Can benull
.pluginVersion
- version of the feature plugin (as String). Can benull
.primary
-true
if the feature is defined as a primary feature, otherwisefalse
.application
- identifier of the application to run when this feature is the primary feature. Can benull
. If specified, the identifier must represent a valid extension registered in theorg.eclipse.core.runtime.applications
extension point.root
- an array of URLs to feature root directories. These are URLs to install locations for the feature plugin and its fragments. Can benull
.- Returns:
- create feature entry
- Since:
- 2.1
-
configureSite
Deprecated.Configures the specified site entry. If a site entry with the same site URL is already configured, the entry is not replaced.- Parameters:
entry
- site entry- Since:
- 2.0
-
configureSite
Deprecated.Configures the specified site entry. If a site entry with the same site URL is already configured, the replacement behavior for the entry can be specified.- Parameters:
entry
- site entryreplace
- indicating whether an existing configured entry with the same URL should be replaced (true
) or not (false
).- Since:
- 2.0
-
unconfigureSite
Deprecated.Unconfigures the specified entry. Does not do anything if the entry is not configured.- Parameters:
entry
- site entry- Since:
- 2.0
-
getConfiguredSites
IPlatformConfiguration.ISiteEntry[] getConfiguredSites()Deprecated.Returns configured site entries- Returns:
- array of site entries. Returns an empty array if no sites are configured
- Since:
- 2.0
-
findConfiguredSite
Deprecated.Returns a site entry matching the specified URL- Parameters:
url
- site url- Returns:
- matching site entry, or
null
if no match found - Since:
- 2.0
-
configureFeatureEntry
Deprecated.Configures the feature entry. If another feature entry with the same feature identifier already exists, it is replaced.- Parameters:
entry
- feature entry- Since:
- 2.0
-
unconfigureFeatureEntry
Deprecated.Unconfigures the specified feature entry if it exists.- Parameters:
entry
- feature entry- Since:
- 2.0
-
getConfiguredFeatureEntries
IPlatformConfiguration.IFeatureEntry[] getConfiguredFeatureEntries()Deprecated.Returns a list of configured feature entries.- Returns:
- array or entries, or an empty array if no entries are configured
- Since:
- 2.0
-
findConfiguredFeatureEntry
Deprecated.Locates the specified feature entry.- Parameters:
id
- feature identifier- Returns:
- ferature entry, or
null
. - Since:
- 2.0
-
getConfigurationLocation
URL getConfigurationLocation()Deprecated.Returns the URL location of the configuration information- Returns:
- configuration location URL, or
null
if the configuration location could not be determined. - Since:
- 2.0
-
getChangeStamp
long getChangeStamp()Deprecated.Returns a stamp reflecting the current state of the configuration. If called repeatedly, returns the same value as long as no changes were made to the configuration (changes to sites, features or plugins).- Returns:
- configuration change stamp
- Since:
- 2.0
-
getFeaturesChangeStamp
Deprecated.Do not use this method.Returns a stamp reflecting the current state of the features in the configuration. If called repeatedly, returns the same value as long as no changes were made to features in the configuration.- Returns:
- configuration features change stamp
- Since:
- 2.0
-
getPluginsChangeStamp
Deprecated.Do not use this methodReturns a stamp reflecting the current state of the plug-ins in the configuration. If called repeatedly, returns the same value as long as no changes were made to plug-ins in the configuration.- Returns:
- configuration plug-ins change stamp
- Since:
- 2.0
-
getPrimaryFeatureIdentifier
String getPrimaryFeatureIdentifier()Deprecated.Returns the identifier of the configured primary feature. A primary feature is used to specify product customization information for a running instance of Eclipse.- Returns:
- primary feature identifier, or
null
if none configured - Since:
- 2.0
-
getPluginPath
URL[] getPluginPath()Deprecated.Computes the plug-in path for this configuration. The result includes all plug-ins visible on each of the configured sites based on each site policy.- Returns:
- an array of plug-in path elements (full URL entries), or an empty array.
- Since:
- 2.0
-
getBootstrapPluginIdentifiers
Deprecated.Do not use this method. Check the osgi.bundles system property for the urls of the automatically started bundlesReturns an array of bootstrap plugin identifiers whose location needs to be explicitly identified in the configuration.- Returns:
- an array of identifiers, or empty array otherwise
- Since:
- 2.0
-
setBootstrapPluginLocation
Deprecated.Do not use this method. Use the osig.bundles system property contains the urls of the automatically started bundles.Sets the location of a bootstrap plugin.- Parameters:
id
- plugin identifier. Must match one of the entries returned by getBootstrapPluginIdentifiers()location
- Location of the bootstrap plugin.- Since:
- 2.0
- See Also:
-
isUpdateable
boolean isUpdateable()Deprecated.Returns an indication whether the configuration can be updated.- Returns:
true
if configuration can be updated,false
otherwise- Since:
- 2.0
-
isTransient
boolean isTransient()Deprecated.Returns an indication whether the configuration is transient. A transient configuration typically represents a scenario where the configuration was computed for a single instantiation of the platform and is not guaranteed to be valid on subsequent instantiations.- Returns:
true
if configuration is transient,false
otherwise- Since:
- 2.0
-
isTransient
void isTransient(boolean value) Deprecated.Indicates whether the configuration is transient or not. A transient configuration typically represents a scenario where the configuration was computed for a single instantiation of the platform and is not guaranteed to be valid on subsequent instantiations. This method has no effect if called on the current platform configuration.- Parameters:
value
-true
if configuration is transient,false
otherwise- Since:
- 2.0
-
refresh
void refresh()Deprecated.Called to refresh the configuration information. In particular, causes change stamps to be recomputed based on the current configuration state, and updates the lists of available plug-ins.- Since:
- 2.0
-
save
Deprecated.Called to save the configuration information- Throws:
IOException
- Since:
- 2.0
-
save
Deprecated.Called to save the configuration information in the specified location- Parameters:
url
- save location.- Throws:
IOException
- Since:
- 2.0
-