Save This Page
Home » org.apache.sling.launchpad.base-2.2.0-source-release » org.apache.sling.launchpad.base.shared » [javadoc | source]
    1   /*
    2    * Licensed to the Apache Software Foundation (ASF) under one
    3    * or more contributor license agreements.  See the NOTICE file
    4    * distributed with this work for additional information
    5    * regarding copyright ownership.  The ASF licenses this file
    6    * to you under the Apache License, Version 2.0 (the
    7    * "License"); you may not use this file except in compliance
    8    * with the License.  You may obtain a copy of the License at
    9    *
   10    *   http://www.apache.org/licenses/LICENSE-2.0
   11    *
   12    * Unless required by applicable law or agreed to in writing,
   13    * software distributed under the License is distributed on an
   14    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   15    * KIND, either express or implied.  See the License for the
   16    * specific language governing permissions and limitations
   17    * under the License.
   18    */
   19   package org.apache.sling.launchpad.base.shared;
   20   
   21   import java.io.File;
   22   
   23   /**
   24    * The <code>Notifiable</code> interface is implemented by the real main class
   25    * and Sling Servlet for them to be notified from the launcher JAR when the
   26    * framework has been stopped or updated.
   27    */
   28   public interface Notifiable {
   29   
   30       /**
   31        * Called when the OSGi framework has been stopped because the
   32        * <code>Bundle.stop</code> method has been called on the system bundle.
   33        */
   34       void stopped();
   35   
   36       /**
   37        * Called when the OSGi framework has been stopped because any of the
   38        * <code>Bundle.update</code> methods has been called on the system bundle.
   39        * <p>
   40        * If a temporary file is provided in the <code>tmpFile</code> parameter,
   41        * that file must be used to replace the current Launcher JAR file and must
   42        * be used for restarting the framework. Otherwise the framework is
   43        * restarted from the existing Launcher JAR file.
   44        * 
   45        * @param tmpFile A temporary file containing the contents of the
   46        *            <code>InputStream</code> given to the
   47        *            <code>Bundle.update(InputStream)</code> method. If no input
   48        *            stream has been provided, this parameter is <code>null</code>.
   49        */
   50       void updated(File tmpFile);
   51   
   52   }

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