public class SlingSettingsServiceImpl extends Object implements SlingSettingsService
RUN_MODE_INSTALL_OPTIONS, RUN_MODE_OPTIONS, RUN_MODES_PROPERTY, SLING_HOME, SLING_HOME_URL| Constructor and Description |
|---|
SlingSettingsServiceImpl(org.osgi.framework.BundleContext context,
org.apache.sling.launchpad.api.StartupHandler handler)
Create the service and search the Sling home urls and
get/create a sling id.
|
| 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
SlingSettingsService.SLING_HOME_URL
property. |
String |
getSlingHomePath()
Returns the value of the
SlingSettingsService.SLING_HOME
property. |
String |
getSlingId()
The identifier of the running Sling instance.
|
String |
getSlingName()
Return the optional name of the instance.
|
void |
update(Dictionary<String,Object> properties)
Update the configuration of this service
|
public SlingSettingsServiceImpl(org.osgi.framework.BundleContext context,
org.apache.sling.launchpad.api.StartupHandler handler)
context - The bundle contextpublic String getAbsolutePathWithinSlingHome(String relativePath)
SlingSettingsServicegetAbsolutePathWithinSlingHome in interface SlingSettingsServiceSlingSettingsService.getAbsolutePathWithinSlingHome(String)public String getSlingId()
SlingSettingsServicegetSlingId in interface SlingSettingsServiceSlingSettingsService.getSlingId()public URL getSlingHome()
SlingSettingsServiceSlingSettingsService.SLING_HOME_URL
property.getSlingHome in interface SlingSettingsServiceSlingSettingsService.getSlingHome()public String getSlingHomePath()
SlingSettingsServiceSlingSettingsService.SLING_HOME
property.getSlingHomePath in interface SlingSettingsServiceSlingSettingsService.getSlingHomePath()public Set<String> getRunModes()
SlingSettingsServicegetRunModes in interface SlingSettingsServiceSlingSettingsService.getRunModes()public String getSlingName()
SlingSettingsServicegetSlingName in interface SlingSettingsServicenull.SlingSettingsService.getSlingName()public String getSlingDescription()
SlingSettingsServicegetSlingDescription in interface SlingSettingsServicenull.SlingSettingsService.getSlingDescription()public void update(Dictionary<String,Object> properties)
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.