public interface SlingSettingsService
SlingSettingsService
provides basic Sling settings.
- Sling home : If the Sling launchpad is used
- Sling Id : A unique id of the installation
Run Mode Support
A run mode is simply a string like "author", "test", "development",...
The server can have a set of active run modes.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RUN_MODE_INSTALL_OPTIONS
The name of the framework property defining the list
of run mode options for installation time.
|
static java.lang.String |
RUN_MODE_OPTIONS
The name of the framework property defining the list
of run mode options
The value is a comma separated list of options where each option
contains of a set of run modes separated by a | character.
|
static java.lang.String |
RUN_MODES_PROPERTY
The name of the framework property defining the set of used
run modes.
|
static java.lang.String |
SLING_HOME
The name of the framework property defining the Sling home directory
(value is "sling.home").
|
static java.lang.String |
SLING_HOME_URL
The name of the framework property defining the Sling home directory as
an URL (value is "sling.home.url").
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAbsolutePathWithinSlingHome(java.lang.String relativePath)
Utility method to generate an absolute path
within Sling Home.
|
java.util.Set<java.lang.String> |
getRunModes()
Return the set of activate run modes.
|
java.lang.String |
getSlingDescription()
Return the optional description of the instance.
|
java.net.URL |
getSlingHome()
Returns the value of the
SLING_HOME_URL
property. |
java.lang.String |
getSlingHomePath()
Returns the value of the
SLING_HOME
property. |
java.lang.String |
getSlingId()
The identifier of the running Sling instance.
|
java.lang.String |
getSlingName()
Return the optional name of the instance.
|
static final java.lang.String SLING_HOME
This property is available calling the
BundleContext.getProperty(String)
method.
SLING_HOME_URL
,
Constant Field Valuesstatic final java.lang.String SLING_HOME_URL
The value of this property is assigned the value of
new File(${sling.home}).toURI().toString()
before
resolving the property variables.
This property is available calling the
BundleContext.getProperty(String)
method.
SLING_HOME
,
Constant Field Valuesstatic final java.lang.String RUN_MODES_PROPERTY
static final java.lang.String RUN_MODE_OPTIONS
static final java.lang.String RUN_MODE_INSTALL_OPTIONS
java.lang.String getAbsolutePathWithinSlingHome(java.lang.String relativePath)
java.lang.String getSlingId()
java.lang.String getSlingHomePath()
SLING_HOME
property.java.net.URL getSlingHome()
SLING_HOME_URL
property.java.util.Set<java.lang.String> getRunModes()
java.lang.String getSlingName()
null
.java.lang.String getSlingDescription()
null
.Copyright © 2018 The Apache Software Foundation. All rights reserved.