You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2011/08/10 10:51:09 UTC

svn commit: r1156074 - /sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/Sling.java

Author: cziegeler
Date: Wed Aug 10 08:51:09 2011
New Revision: 1156074

URL: http://svn.apache.org/viewvc?rev=1156074&view=rev
Log:
SLING-2177 : Remove unused internal API in Sling class: doStartBundle and doStopBundle

Modified:
    sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/Sling.java

Modified: sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/Sling.java
URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/Sling.java?rev=1156074&r1=1156073&r2=1156074&view=diff
==============================================================================
--- sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/Sling.java (original)
+++ sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/Sling.java Wed Aug 10 08:51:09 2011
@@ -332,31 +332,6 @@ public class Sling {
         bundleContext.registerService(MBeanServer.class.getName(),
             platformMBeanServer, mbeanProps);
         bundleContext.registerService(LaunchpadContentProvider.class.getName(), resourceProvider, null);
-
-        // execute optional bundle startup tasks of an extension
-        try {
-            this.doStartBundle();
-        } catch (Exception e) {
-            throw new BundleException(e.getMessage(), e);
-        }
-    }
-
-    /**
-     * Called when the OSGi framework is being shut down. This implementation
-     * first calls the {@link #doStopBundle()} method method before
-     * unregistering as a service listener and ungetting an servlet delegatee if
-     * one has been acquired.
-     *
-     * @param bundleContext The <code>BundleContext</code> of the system
-     *            bundle of the OSGi framework.
-     */
-    private final void shutdown() {
-        // execute optional bundle stop tasks of an extension
-        try {
-            this.doStopBundle();
-        } catch (Exception e) {
-            this.logger.log(Logger.LOG_ERROR, "Unexpected exception caught", e);
-        }
     }
 
     // ---------- Creating the framework instance
@@ -784,31 +759,6 @@ public class Sling {
         return this.framework.getBundleContext();
     }
 
-    /**
-     * Executes additional startup tasks and is called by the
-     * {@link #start(BundleContext)} method.
-     * <p>
-     * This implementation does nothing and may be overwritten by extensions
-     * requiring additional startup tasks.
-     *
-     * @throws Exception May be thrown in case of problems.
-     */
-    protected void doStartBundle() throws Exception {
-    }
-
-    /**
-     * Executes additional shutdown tasks and is called by the
-     * {@link #stop(BundleContext)} method.
-     * <p>
-     * This implementation does nothing and may be overwritten by extensions
-     * requiring additional shutdown tasks.
-     * <p>
-     * When overwriting this method, it must be made sure, that no exception may
-     * be thrown, otherwise unexpected behaviour may result.
-     */
-    protected void doStopBundle() {
-    }
-
     // ---------- Property file support ----------------------------------------
 
     /**