felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r789267 - /felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/AbstractWebConsolePlugin.java
Date Mon, 29 Jun 2009 09:20:33 GMT
Author: fmeschbe
Date: Mon Jun 29 09:20:32 2009
New Revision: 789267

URL: http://svn.apache.org/viewvc?rev=789267&view=rev
Log:
FELIX-1211 JavaDoc on the getResourceProvider method

Modified:
    felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/AbstractWebConsolePlugin.java

Modified: felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/AbstractWebConsolePlugin.java
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/AbstractWebConsolePlugin.java?rev=789267&r1=789266&r2=789267&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/AbstractWebConsolePlugin.java
(original)
+++ felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/AbstractWebConsolePlugin.java
Mon Jun 29 09:20:32 2009
@@ -182,10 +182,23 @@
         return bundleContext;
     }
 
-    protected Object getResourceProvider() {
+
+    /**
+     * Returns the object which might provide resources. The class of this
+     * object is used to find the <code>getResource</code> method.
+     * <p>
+     * This method may be overwritten by extensions. This base class
+     * implementation returns this instance.
+     *
+     * @return The resource provider object or <code>null</code> if no
+     *      resources will be provided by this plugin.
+     */
+    protected Object getResourceProvider()
+    {
         return this;
     }
 
+
     /**
      * Returns a method which is called on the
      * {@link #getResourceProvider() resource provder} class to return an URL



Mime
View raw message