sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r1103946 - /sling/trunk/contrib/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java
Date Mon, 16 May 2011 22:59:31 GMT
Author: justin
Date: Mon May 16 22:59:30 2011
New Revision: 1103946

URL: http://svn.apache.org/viewvc?rev=1103946&view=rev
Log:
SLING-2061 - doing preloading of bundles in a separate thread on activation

Modified:
    sling/trunk/contrib/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java

Modified: sling/trunk/contrib/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java?rev=1103946&r1=1103945&r2=1103946&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java
(original)
+++ sling/trunk/contrib/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java
Mon May 16 22:59:30 2011
@@ -211,7 +211,12 @@ public class JcrResourceBundleProvider i
         this.bundleContext = context.getBundleContext();
         this.bundleServiceRegistrations = new ArrayList<ServiceRegistration>();
         if (this.resourceResolverFactory != null) {
-            preloadBundles();
+            final Thread t = new Thread() {
+                public void run() {
+                    preloadBundles();
+                }
+            };
+            t.start();
         }
     }
     



Mime
View raw message