org.apache.sling.launchpad.base.webapp
Class SlingBridge

java.lang.Object
  extended by org.apache.sling.launchpad.base.impl.Sling
      extended by org.apache.sling.launchpad.base.webapp.SlingBridge
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class SlingBridge
extends org.apache.sling.launchpad.base.impl.Sling

The SlingBridge extends the base Sling class calling the Eclipse Equinox Http Service activator for the proxy servlet to be able to handle requests.


Field Summary
 
Fields inherited from class org.apache.sling.launchpad.base.impl.Sling
CONFIG_PROPERTIES, JCR_REPO_CONFIG_FILE_URL, JCR_REPO_HOME, logger, OSGI_FRAMEWORK_BUNDLES, PROP_SYSTEM_PACKAGES, SLING_HOME_URL, SLING_IGNORE_SYSTEM_PROPERTIES
 
Constructor Summary
SlingBridge(Notifiable notifiable, org.apache.felix.framework.Logger logger, org.apache.sling.launchpad.base.impl.ResourceProvider resourceProvider, java.util.Map<java.lang.String,java.lang.String> propOverwrite)
           
 
Method Summary
protected  void doStartBundle()
          Executes additional startup tasks and is called by the Sling.start(BundleContext) method.
protected  void doStopBundle()
          Executes additional shutdown tasks and is called by the Sling.stop(BundleContext) method.
 
Methods inherited from class org.apache.sling.launchpad.base.impl.Sling
destroy, getBundleContext, loadPropertiesOverride, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlingBridge

public SlingBridge(Notifiable notifiable,
                   org.apache.felix.framework.Logger logger,
                   org.apache.sling.launchpad.base.impl.ResourceProvider resourceProvider,
                   java.util.Map<java.lang.String,java.lang.String> propOverwrite)
            throws org.osgi.framework.BundleException
Throws:
org.osgi.framework.BundleException
Method Detail

doStartBundle

protected void doStartBundle()
                      throws java.lang.Exception
Description copied from class: org.apache.sling.launchpad.base.impl.Sling
Executes additional startup tasks and is called by the Sling.start(BundleContext) method.

This implementation does nothing and may be overwritten by extensions requiring additional startup tasks.

Overrides:
doStartBundle in class org.apache.sling.launchpad.base.impl.Sling
Throws:
java.lang.Exception - May be thrown in case of problems.

doStopBundle

protected void doStopBundle()
Description copied from class: org.apache.sling.launchpad.base.impl.Sling
Executes additional shutdown tasks and is called by the Sling.stop(BundleContext) method.

This implementation does nothing and may be overwritten by extensions requiring additional shutdown tasks.

When overwriting this method, it must be made sure, that no exception may be thrown, otherwise unexpected behaviour may result.

Overrides:
doStopBundle in class org.apache.sling.launchpad.base.impl.Sling


Copyright © 2007-2009. All Rights Reserved.