Interface Notifiable
-
- All Known Implementing Classes:
SlingServlet
public interface NotifiableTheNotifiableinterface 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidstopped()Called when the OSGi framework has been stopped because theBundle.stopmethod has been called on the system bundle.voidupdated(File tmpFile)Called when the OSGi framework has been stopped because any of theBundle.updatemethods has been called on the system bundle.
-
-
-
Method Detail
-
stopped
void stopped()
Called when the OSGi framework has been stopped because theBundle.stopmethod has been called on the system bundle.
-
updated
void updated(File tmpFile)
Called when the OSGi framework has been stopped because any of theBundle.updatemethods has been called on the system bundle.If a temporary file is provided in the
tmpFileparameter, 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.- Parameters:
tmpFile- A temporary file containing the contents of theInputStreamgiven to theBundle.update(InputStream)method. If no input stream has been provided, this parameter isnull.
-
-