geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r1075688 - /geronimo/server/branches/3.0-M2/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/OsgiMetaDataScannerService.java
Date Tue, 01 Mar 2011 07:12:20 GMT
Author: genspring
Date: Tue Mar  1 07:12:20 2011
New Revision: 1075688

URL: http://svn.apache.org/viewvc?rev=1075688&view=rev
Log:
Adpapt to changes in OWB-535 to add a release() method to free up resources.

Modified:
    geronimo/server/branches/3.0-M2/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/OsgiMetaDataScannerService.java

Modified: geronimo/server/branches/3.0-M2/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/OsgiMetaDataScannerService.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/3.0-M2/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/OsgiMetaDataScannerService.java?rev=1075688&r1=1075687&r2=1075688&view=diff
==============================================================================
--- geronimo/server/branches/3.0-M2/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/OsgiMetaDataScannerService.java
(original)
+++ geronimo/server/branches/3.0-M2/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/OsgiMetaDataScannerService.java
Tue Mar  1 07:12:20 2011
@@ -61,13 +61,13 @@ public class OsgiMetaDataScannerService 
     protected BDABeansXmlScanner bdaBeansXmlScanner;
 
     /** All classes which have to be scanned for Bean information */
-    private final Set<Class<?>> beanClasses = new HashSet<Class<?>>();
+    private Set<Class<?>> beanClasses = new HashSet<Class<?>>();
 
     /** the URLs of all META-INF/beans.xml files */
-    private final Set<String> beanXMLs = new HashSet<String>();
+    private Set<String> beanXMLs = new HashSet<String>();
 
     /**contains all the JARs we found with valid beans.xml in it */
-    private final Set<String> beanArchiveJarNames = new HashSet<String>();
+    private Set<String> beanArchiveJarNames = new HashSet<String>();
 
     public OsgiMetaDataScannerService(WebBeansContext webBeansContext) {
         this.webBeansContext = webBeansContext;
@@ -88,6 +88,14 @@ public class OsgiMetaDataScannerService 
     }
 
     @Override
+    public void release()
+    {
+        beanClasses = new HashSet<Class<?>>();
+        beanXMLs = new HashSet<String>();
+        beanArchiveJarNames = new HashSet<String>();
+    }    
+    
+    @Override
     public void scan() throws WebBeansDeploymentException
     {
         logger.info("Using OsgiMetaDataScannerService!");



Mime
View raw message