[jboss-cvs] JBossAS SVN: r95543 - in projects/jboss-osgi/trunk/reactor: framework/src/main/java/org/jboss/osgi/framework/plugins and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat Oct 24 03:51:31 EDT 2009


Author: thomas.diesler at jboss.com
Date: 2009-10-24 03:51:30 -0400 (Sat, 24 Oct 2009)
New Revision: 95543

Modified:
   projects/jboss-osgi/trunk/reactor/deployment/src/main/java/org/jboss/osgi/deployment/interceptor/LifecycleInterceptorService.java
   projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/plugins/LifecycleInterceptorServicePlugin.java
   projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/service/internal/LifecycleInterceptorServiceImpl.java
Log:
Remove handleStateChange from LifecycleInterceptorService

Modified: projects/jboss-osgi/trunk/reactor/deployment/src/main/java/org/jboss/osgi/deployment/interceptor/LifecycleInterceptorService.java
===================================================================
--- projects/jboss-osgi/trunk/reactor/deployment/src/main/java/org/jboss/osgi/deployment/interceptor/LifecycleInterceptorService.java	2009-10-24 07:24:34 UTC (rev 95542)
+++ projects/jboss-osgi/trunk/reactor/deployment/src/main/java/org/jboss/osgi/deployment/interceptor/LifecycleInterceptorService.java	2009-10-24 07:51:30 UTC (rev 95543)
@@ -23,7 +23,6 @@
 
 //$Id$
 
-import org.osgi.framework.Bundle;
 
 /**
  * A service that manages bundle lifecycle interceptors.
@@ -49,13 +48,5 @@
     * @param interceptor The interceptor
     */
    void removeInterceptor(LifecycleInterceptor interceptor);
-   
-   /**
-    * Invoke the registered set of interceptors for the given bundle state change.
-    *  
-    * @param state The future state of the bundle
-    * @param bundle The bundle that changes state
-    * @throws LifecycleInterceptorException if the invocation of an interceptor fails 
-    */
-   void handleStateChange(int state, Bundle bundle);
+
 }
\ No newline at end of file

Modified: projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/plugins/LifecycleInterceptorServicePlugin.java
===================================================================
--- projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/plugins/LifecycleInterceptorServicePlugin.java	2009-10-24 07:24:34 UTC (rev 95542)
+++ projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/plugins/LifecycleInterceptorServicePlugin.java	2009-10-24 07:51:30 UTC (rev 95543)
@@ -21,7 +21,9 @@
  */
 package org.jboss.osgi.framework.plugins;
 
+import org.jboss.osgi.deployment.interceptor.LifecycleInterceptorException;
 import org.jboss.osgi.deployment.interceptor.LifecycleInterceptorService;
+import org.osgi.framework.Bundle;
 
 /**
  * The LifecycleInterceptorService service plugin
@@ -31,4 +33,12 @@
  */
 public interface LifecycleInterceptorServicePlugin extends ServicePlugin, LifecycleInterceptorService
 {
+   /**
+    * Invoke the registered set of interceptors for the given bundle state change.
+    *  
+    * @param state The future state of the bundle
+    * @param bundle The bundle that changes state
+    * @throws LifecycleInterceptorException if the invocation of an interceptor fails 
+    */
+   void handleStateChange(int state, Bundle bundle);
 }
\ No newline at end of file

Modified: projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/service/internal/LifecycleInterceptorServiceImpl.java
===================================================================
--- projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/service/internal/LifecycleInterceptorServiceImpl.java	2009-10-24 07:24:34 UTC (rev 95542)
+++ projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/service/internal/LifecycleInterceptorServiceImpl.java	2009-10-24 07:51:30 UTC (rev 95543)
@@ -51,7 +51,7 @@
    // Provide logging
    final Logger log = Logger.getLogger(LifecycleInterceptorServiceImpl.class);
 
-   private LifecycleInterceptorService delegate;
+   private AbstractLifecycleInterceptorService delegate;
    private ServiceRegistration registration;
 
    public LifecycleInterceptorServiceImpl(OSGiBundleManager bundleManager)




More information about the jboss-cvs-commits mailing list