Save This Page
Home » org.apache.sling.launchpad.base-2.2.0-source-release » org.apache.sling.launchpad.base.shared » [javadoc | source]
org.apache.sling.launchpad.base.shared
public interface: Notifiable [javadoc | source]

All Known Implementing Classes:
    Main, SlingServlet

The Notifiable interface is implemented by the real main class and Sling Servlet for them to be notified from the launcher JAR when the framework has been stopped or updated.
Method from org.apache.sling.launchpad.base.shared.Notifiable Summary:
stopped,   updated
Method from org.apache.sling.launchpad.base.shared.Notifiable Detail:
 public  void stopped()
    Called when the OSGi framework has been stopped because the Bundle.stop method has been called on the system bundle.
 public  void updated(File tmpFile)
    Called when the OSGi framework has been stopped because any of the Bundle.update methods has been called on the system bundle.

    If a temporary file is provided in the tmpFile parameter, that file must be used to replace the current Launcher JAR file and must be used for restarting the framework. Otherwise the framework is restarted from the existing Launcher JAR file.