|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SlingSettingsService
The 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.
| Field Summary | |
|---|---|
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"). |
| Method Summary | |
|---|---|
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.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. |
| Field Detail |
|---|
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
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||