axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robins...@apache.org
Subject svn commit: r527672 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java
Date Wed, 11 Apr 2007 21:07:03 GMT
Author: robinsona
Date: Wed Apr 11 14:07:02 2007
New Revision: 527672

URL: http://svn.apache.org/viewvc?view=rev&rev=527672
Log:
axis2-2512 provide a method to release xml schema list in axis service

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java?view=diff&rev=527672&r1=527671&r2=527672
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java
Wed Apr 11 14:07:02 2007
@@ -790,6 +790,25 @@
         return addNameSpaces(index);
     }
 
+
+    /**
+     * Release the list of schema objects.
+     * <P>
+     * In some environments, this can provide significant relief
+     * of memory consumption in the java heap, as long as the 
+     * need for the schema list has completed.
+     */
+    public void releaseSchemaList() {
+        if (schemaList != null) {
+            // release the schema list 
+            schemaList.clear();
+        }
+
+        if (log.isDebugEnabled()) {
+            log.debug("releaseSchemaList: schema list has been released."); 
+        }
+    }
+
     private XmlSchema addNameSpaces(int i) {
         XmlSchema schema = (XmlSchema) schemaList.get(i);
         NamespaceMap map = (NamespaceMap) nameSpacesMap.clone();



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message