|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ops4j.util.property.PropertyStore
org.ops4j.pax.runner.platform.internal.ConfigurationImpl
public class ConfigurationImpl
Service Configuration implementation.
Configuration
Constructor Summary | |
---|---|
ConfigurationImpl(org.ops4j.util.property.PropertyResolver propertyResolver)
Creates a new service configuration. |
Method Summary | |
---|---|
java.lang.String |
getBootDelegation()
Returns a comma separated list of boot delegation packages according to OSGi core specs 3.2.3 (in 4.0.1). |
java.lang.Integer |
getBundleStartLevel()
Returns the installed bundles start level option - optional; the platform start level. |
java.lang.String |
getClasspath()
TODO add unit tests |
java.net.URL |
getDefinitionURL()
Returns the definition url option - optional; url to the xml file containing the definition of the platform (system bundle, profiles). |
java.lang.String |
getExecutionEnvironment()
Returns the java version option - optional; the targeted version for the platform. |
java.lang.String |
getFrameworkProfile()
Returns the framework profile option - optional; name of the framework profile to use. |
java.lang.String |
getJavaHome()
Returns the java home option - optional; If no version was specified then first the value of system property "JAVA_HOME" is used. |
java.lang.String |
getProfiles()
Returns the profiles option - optional; a comma separated list of profiles to be used. |
java.lang.Integer |
getProfileStartLevel()
Returns the platform bundles start level option - optional; the start level at which the platform bundles will be started. |
java.lang.String |
getProperty(java.lang.String name)
Returns a raw configuration property by name. |
java.lang.Integer |
getStartLevel()
Returns the platform start level option - optional; the platform start level. |
java.lang.String |
getSystemPackages()
Returns the system packages option - optional; a comma separated list of packages that should be exported by the framework bundles, in addition to the standard packages list. |
java.lang.String[] |
getVMOptions()
Returns the virtual machine options option - optional; virtual machine options to be used for the VM that will be used for the platform. |
java.lang.String |
getWorkingDirectory()
Returns the working directory option - ptional; a file path where the platform specific artifacts will be stored. |
java.lang.Boolean |
isAutoWrap()
Returns true if not osgi compliant jars should be automatically wrapped (transformed to osgi compliant). |
java.lang.Boolean |
isDebugClassLoading()
Returns true if the platform should print debug messages about class loading. |
java.lang.Boolean |
isDownloadFeedback()
Returns true if detailed information about downloading process should be displayed. |
java.lang.Boolean |
isOverwrite()
Returns true if the already downloaded bundles from a previous run must be overwritten. |
java.lang.Boolean |
isOverwriteSystemBundles()
Returns true if the already downloaded system bundles from a previous run must be overwritten. |
java.lang.Boolean |
isOverwriteUserBundles()
Returns true if the already downloaded user bundles from a previous run must be overwritten. |
java.lang.Boolean |
keepOriginalUrls()
Returns true if the provisioning urls should be the ones provided by scanners or the local cashed ones. |
java.lang.Boolean |
skipInvalidBundles()
Returns true if the invalid bundles should be skipped from provisioning. |
java.lang.Boolean |
startConsole()
Returns the start console option - true/false; whether the platform console should be started. |
java.lang.Boolean |
useAbsoluteFilePaths()
Returns true if the file paths used in frameworks configuration files and properties should be absolute. |
java.lang.Boolean |
usePersistedState()
Returns true if persisted platform state (platform specific) should be used on start up. |
java.lang.Boolean |
validateBundles()
Returns true if the bundles should be validated, meaning that they have the required OSGi headers. |
Methods inherited from class org.ops4j.util.property.PropertyStore |
---|
contains, get, set |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationImpl(org.ops4j.util.property.PropertyResolver propertyResolver)
propertyResolver
- propertyResolver used to resolve properties; mandatoryMethod Detail |
---|
public java.net.URL getDefinitionURL() throws java.net.MalformedURLException
Configuration
getDefinitionURL
in interface Configuration
java.net.MalformedURLException
- if the definition url is malformedConfiguration.getDefinitionURL()
public java.lang.String getWorkingDirectory()
Configuration
getWorkingDirectory
in interface Configuration
Configuration.getWorkingDirectory()
public java.lang.String[] getVMOptions()
Configuration
getVMOptions
in interface Configuration
Configuration.getVMOptions()
public java.lang.String getClasspath()
getClasspath
in interface Configuration
Configuration.getClasspath()
public java.lang.String getSystemPackages()
Configuration
getSystemPackages
in interface Configuration
Configuration.getSystemPackages()
public java.lang.String getExecutionEnvironment()
Configuration
getExecutionEnvironment
in interface Configuration
Configuration.getExecutionEnvironment()
public java.lang.String getJavaHome()
Configuration
getJavaHome
in interface Configuration
Configuration.getJavaHome()
public java.lang.Boolean usePersistedState()
Configuration
usePersistedState
in interface Configuration
Configuration.usePersistedState()
public java.lang.Boolean startConsole()
Configuration
startConsole
in interface Configuration
Configuration.startConsole()
public java.lang.Boolean isOverwrite()
Configuration
isOverwrite
in interface Configuration
Configuration.isOverwrite()
public java.lang.String getProfiles()
Configuration
getProfiles
in interface Configuration
Configuration.getProfiles()
public java.lang.String getFrameworkProfile()
Configuration
getFrameworkProfile
in interface Configuration
Configuration.getFrameworkProfile()
public java.lang.Integer getProfileStartLevel()
Configuration
getProfileStartLevel
in interface Configuration
Configuration.getProfileStartLevel()
public java.lang.Integer getStartLevel()
Configuration
getStartLevel
in interface Configuration
Configuration.getStartLevel()
public java.lang.Integer getBundleStartLevel()
Configuration
getBundleStartLevel
in interface Configuration
Configuration.getBundleStartLevel()
public java.lang.Boolean isOverwriteUserBundles()
Configuration
isOverwriteUserBundles
in interface Configuration
Configuration.isOverwriteUserBundles()
public java.lang.Boolean isOverwriteSystemBundles()
Configuration
isOverwriteSystemBundles
in interface Configuration
Configuration.isOverwriteSystemBundles()
public java.lang.Boolean isDebugClassLoading()
Configuration
isDebugClassLoading
in interface Configuration
Configuration.isDebugClassLoading()
public java.lang.Boolean isDownloadFeedback()
Configuration
isDownloadFeedback
in interface Configuration
Configuration.isDownloadFeedback()
public java.lang.String getBootDelegation()
Configuration
getBootDelegation
in interface Configuration
Configuration.getBootDelegation()
public java.lang.Boolean isAutoWrap()
Configuration
isAutoWrap
in interface Configuration
Configuration.isAutoWrap()
public java.lang.Boolean keepOriginalUrls()
keepOriginalUrls
in interface Configuration
public java.lang.Boolean validateBundles()
validateBundles
in interface Configuration
public java.lang.Boolean skipInvalidBundles()
skipInvalidBundles
in interface Configuration
public java.lang.Boolean useAbsoluteFilePaths()
useAbsoluteFilePaths
in interface Configuration
public java.lang.String getProperty(java.lang.String name)
getProperty
in interface Configuration
name
- property name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |