SLING-1195 - Make INSTANCE field public to allow access from within an junit test.
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@896040 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/sling/adapter/internal/AdapterManagerImpl.java b/src/main/java/org/apache/sling/adapter/internal/AdapterManagerImpl.java
index 7bca244..c28fa73 100644
--- a/src/main/java/org/apache/sling/adapter/internal/AdapterManagerImpl.java
+++ b/src/main/java/org/apache/sling/adapter/internal/AdapterManagerImpl.java
@@ -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