org.apache.sling.settings.impl
Class SlingSettingsServiceImpl

java.lang.Object
  extended by org.apache.sling.settings.impl.SlingSettingsServiceImpl
All Implemented Interfaces:
SlingSettingsService

public class SlingSettingsServiceImpl
extends Object
implements SlingSettingsService

This is the basic implementation of the sling settings service.


Field Summary
static String ENGINE_SYMBOLIC_NAME
           
 
Fields inherited from interface org.apache.sling.settings.SlingSettingsService
RUN_MODES_PROPERTY, SLING_HOME, SLING_HOME_URL
 
Constructor Summary
SlingSettingsServiceImpl(org.osgi.framework.BundleContext context)
          Create the service and search the Sling home urls and get/create a sling id.
 
Method Summary
 Set<String> getRunModes()
          Return the set of activate run modes.
 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.
 void initDelayed(org.osgi.framework.BundleContext context)
           
 boolean isDelayedStart()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENGINE_SYMBOLIC_NAME

public static final String ENGINE_SYMBOLIC_NAME
See Also:
Constant Field Values
Constructor Detail

SlingSettingsServiceImpl

public SlingSettingsServiceImpl(org.osgi.framework.BundleContext context)
Create the service and search the Sling home urls and get/create a sling id. Setup run modes

Parameters:
context - The bundle context
Method Detail

getSlingId

public String getSlingId()
Description copied from interface: SlingSettingsService
The identifier of the running Sling instance.

Specified by:
getSlingId in interface SlingSettingsService
See Also:
SlingSettingsService.getSlingId()

getSlingHome

public URL getSlingHome()
Description copied from interface: SlingSettingsService
Returns the value of the SlingSettingsService.SLING_HOME_URL property.

Specified by:
getSlingHome in interface SlingSettingsService
See Also:
SlingSettingsService.getSlingHome()

getSlingHomePath

public String getSlingHomePath()
Description copied from interface: SlingSettingsService
Returns the value of the SlingSettingsService.SLING_HOME property.

Specified by:
getSlingHomePath in interface SlingSettingsService
See Also:
SlingSettingsService.getSlingHomePath()

getRunModes

public Set<String> getRunModes()
Description copied from interface: SlingSettingsService
Return the set of activate run modes. This set might be empty.

Specified by:
getRunModes in interface SlingSettingsService
Returns:
A non modifiable set of run modes.
See Also:
SlingSettingsService.getRunModes()

isDelayedStart

public boolean isDelayedStart()

initDelayed

public void initDelayed(org.osgi.framework.BundleContext context)


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.