Author: marrs
Date: Fri Jul 16 09:07:56 2010
New Revision: 964721

URL: http://svn.apache.org/viewvc?rev=964721&view=rev
Log:
Added a couple of getters so subclasses of this base can still access the 
internally stored bundle context, dependency manager and logger. This way they 
don't have to hold on to it themselves.

Modified:
    
felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/DependencyActivatorBase.java

Modified: 
felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/DependencyActivatorBase.java
URL: 
http://svn.apache.org/viewvc/felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/DependencyActivatorBase.java?rev=964721&r1=964720&r2=964721&view=diff
==============================================================================
--- 
felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/DependencyActivatorBase.java
 (original)
+++ 
felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/DependencyActivatorBase.java
 Fri Jul 16 09:07:56 2010
@@ -92,6 +92,35 @@ public abstract class DependencyActivato
     }
     
     /**
+     * Returns the bundle context that is associated with this bundle.
+     * 
+     * @return the bundle context
+     */
+    public BundleContext getBundleContext() {
+        return m_context;
+    }
+
+    /**
+     * Returns the dependency manager that is associated with this bundle.
+     * 
+     * @return the dependency manager
+     */
+    public DependencyManager getDependencyManager() {
+        return m_manager;
+    }
+    
+    /**
+     * Returns the logger that is associated with this bundle. A logger 
instance
+     * is a proxy that will log to a real OSGi logservice if available and 
standard
+     * out if not.
+     * 
+     * @return the logger
+     */
+    public Logger getLogger() {
+        return m_logger;
+    }
+    
+    /**
      * Creates a new service.
      * 
      * @return the new service


Reply via email to