You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ro...@apache.org on 2007/04/11 23:07:03 UTC
svn commit: r527672 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java
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