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 String |
RUN_MODE_INSTALL_OPTIONS
The name of the framework property defining the list
of run mode options for installation time.
|
static 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 String |
RUN_MODES_PROPERTY
The name of the framework property defining the set of used
run modes.
|
static String |
SLING_HOME
The name of the framework property defining the Sling home directory
(value is "sling.home").
|
static 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 |
---|---|
String |
getAbsolutePathWithinSlingHome(String relativePath)
Utility method to generate an absolute path
within Sling Home.
|
Set<String> |
getRunModes()
Return the set of activate run modes.
|
String |
getSlingDescription()
Return the optional description of the instance.
|
URL |
getSlingHome()
Returns the value of the
SLING_HOME_URL
property. |
String |
getSlingHomePath()
Returns the value of the
SLING_HOME
property. |
String |
getSlingId()
The identifier of the running Sling instance.
|
String |
getSlingName()
Return the optional name of the instance.
|
static final String SLING_HOME
This property is available calling the
BundleContext.getProperty(String)
method.
SLING_HOME_URL
,
Constant Field Valuesstatic final 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 String RUN_MODES_PROPERTY
static final String RUN_MODE_OPTIONS
static final String RUN_MODE_INSTALL_OPTIONS
String getAbsolutePathWithinSlingHome(String relativePath)
String getSlingId()
String getSlingHomePath()
SLING_HOME
property.URL getSlingHome()
SLING_HOME_URL
property.Set<String> getRunModes()
String getSlingName()
null
.String getSlingDescription()
null
.Copyright © 2015 The Apache Software Foundation. All rights reserved.