felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r634610 - in /felix/trunk/scr/src/main/java/org/apache/felix/scr/impl: BundleComponentActivator.java ComponentFactoryImpl.java DependencyManager.java ImmediateComponentManager.java
Date Fri, 07 Mar 2008 11:04:32 GMT
Author: fmeschbe
Date: Fri Mar  7 03:04:30 2008
New Revision: 634610

URL: http://svn.apache.org/viewvc?rev=634610&view=rev
Log:
Add more logging

Modified:
    felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/BundleComponentActivator.java
    felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ComponentFactoryImpl.java
    felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/DependencyManager.java
    felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ImmediateComponentManager.java

Modified: felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/BundleComponentActivator.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/BundleComponentActivator.java?rev=634610&r1=634609&r2=634610&view=diff
==============================================================================
--- felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/BundleComponentActivator.java
(original)
+++ felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/BundleComponentActivator.java
Fri Mar  7 03:04:30 2008
@@ -384,6 +384,7 @@
         {
             try
             {
+                log( LogService.LOG_DEBUG, "Disabling Component", cm[i].getComponentMetadata(),
null );
                 cm[i].disable();
             }
             catch ( Throwable t )

Modified: felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ComponentFactoryImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ComponentFactoryImpl.java?rev=634610&r1=634609&r2=634610&view=diff
==============================================================================
--- felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ComponentFactoryImpl.java (original)
+++ felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ComponentFactoryImpl.java Fri
Mar  7 03:04:30 2008
@@ -163,6 +163,9 @@
             ComponentManager cm = ( ComponentManager ) m_configuredServices.remove( pid );
             if ( cm != null )
             {
+                getActivator().log( LogService.LOG_DEBUG, "Disposing component after configuration
deletion",
+                    getComponentMetadata(), null );
+
                 disposeComponentManager( cm );
             }
         }

Modified: felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/DependencyManager.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/DependencyManager.java?rev=634610&r1=634609&r2=634610&view=diff
==============================================================================
--- felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/DependencyManager.java (original)
+++ felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/DependencyManager.java Fri Mar
 7 03:04:30 2008
@@ -175,6 +175,11 @@
                 // only reactivate if the service has an influence on binding
                 if ( m_dependencyMetadata.isMultiple() || !isBound() )
                 {
+                    m_componentManager.getActivator().log(
+                        LogService.LOG_DEBUG,
+                        "Dependency Manager: Service " + m_dependencyMetadata.getName()
+                            + " registered, reactivate component", m_componentManager.getComponentMetadata(),
null );
+
                     m_componentManager.reactivate();
                 }
             }

Modified: felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ImmediateComponentManager.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ImmediateComponentManager.java?rev=634610&r1=634609&r2=634610&view=diff
==============================================================================
--- felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ImmediateComponentManager.java
(original)
+++ felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ImmediateComponentManager.java
Fri Mar  7 03:04:30 2008
@@ -396,6 +396,8 @@
         // configuration data
         if ( ( getState() & ( STATE_ACTIVE | STATE_FACTORY | STATE_REGISTERED ) ) !=
0 )
         {
+            getActivator().log( LogService.LOG_DEBUG, "Deactivating and Activating to reconfigure
from configuration",
+                getComponentMetadata(), null );
             reactivate();
         }
     }



Mime
View raw message