|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.settings.impl.SlingSettingsServiceImpl
public class SlingSettingsServiceImpl
This is the basic implementation of the sling settings service.
| Field Summary |
|---|
| Fields inherited from interface org.apache.sling.settings.SlingSettingsService |
|---|
RUN_MODE_INSTALL_OPTIONS, RUN_MODE_OPTIONS, RUN_MODES_PROPERTY, SLING_HOME, SLING_HOME_URL |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SlingSettingsServiceImpl(org.osgi.framework.BundleContext context,
org.apache.sling.launchpad.api.StartupHandler handler)
context - The bundle context| Method Detail |
|---|
public String getAbsolutePathWithinSlingHome(String relativePath)
SlingSettingsService
getAbsolutePathWithinSlingHome in interface SlingSettingsServiceSlingSettingsService.getAbsolutePathWithinSlingHome(String)public String getSlingId()
SlingSettingsService
getSlingId 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()
SlingSettingsService
getRunModes in interface SlingSettingsServiceSlingSettingsService.getRunModes()public String getSlingName()
SlingSettingsService
getSlingName in interface SlingSettingsServicenull.SlingSettingsService.getSlingName()public String getSlingDescription()
SlingSettingsService
getSlingDescription in interface SlingSettingsServicenull.SlingSettingsService.getSlingDescription()public void update(Dictionary<String,Object> properties)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||