incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r896040 - /sling/trunk/bundles/extensions/adapter/src/main/java/org/apache/sling/adapter/internal/AdapterManagerImpl.java
Date Tue, 05 Jan 2010 14:03:08 GMT
Author: cziegeler
Date: Tue Jan  5 14:03:08 2010
New Revision: 896040

URL: http://svn.apache.org/viewvc?rev=896040&view=rev
Log:
SLING-1195 - Make INSTANCE field public to allow access from within an junit test.

Modified:
    sling/trunk/bundles/extensions/adapter/src/main/java/org/apache/sling/adapter/internal/AdapterManagerImpl.java

Modified: sling/trunk/bundles/extensions/adapter/src/main/java/org/apache/sling/adapter/internal/AdapterManagerImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/adapter/src/main/java/org/apache/sling/adapter/internal/AdapterManagerImpl.java?rev=896040&r1=896039&r2=896040&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/adapter/src/main/java/org/apache/sling/adapter/internal/AdapterManagerImpl.java
(original)
+++ sling/trunk/bundles/extensions/adapter/src/main/java/org/apache/sling/adapter/internal/AdapterManagerImpl.java
Tue Jan  5 14:03:08 2010
@@ -59,8 +59,13 @@
      * The singleton instance of this manager. This field is set when the
      * instance is {@link #activate(ComponentContext) activated} and cleared
      * when the instance is {@link #deactivate(ComponentContext) deactivated}.
+     *
+     * This field is set to public to make it easier for testing to provide
+     * an own adapter manager implementation which can be used together
+     * with {@link org.apache.sling.adapter.SlingAdaptable}s. (see SLING-1195).
+     * As this class is private this field is not accessible in an OSGi environment!
      */
-    private static AdapterManager INSTANCE;
+    public static AdapterManager INSTANCE;
 
     /**
      * Returns the instance of this class or <code>null</code> if no activate



Mime
View raw message