Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 97852 invoked from network); 3 Oct 2008 15:39:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2008 15:39:50 -0000 Received: (qmail 65679 invoked by uid 500); 3 Oct 2008 15:39:48 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 65569 invoked by uid 500); 3 Oct 2008 15:39:48 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 65559 invoked by uid 500); 3 Oct 2008 15:39:48 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 65556 invoked by uid 99); 3 Oct 2008 15:39:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2008 08:39:48 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2008 15:38:54 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2C39D238889E; Fri, 3 Oct 2008 08:38:59 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r701415 - /webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/DescriptionFactory.java Date: Fri, 03 Oct 2008 15:38:58 -0000 To: axis2-cvs@ws.apache.org From: rott@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081003153859.2C39D238889E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rott Date: Fri Oct 3 08:38:58 2008 New Revision: 701415 URL: http://svn.apache.org/viewvc?rev=701415&view=rev Log: Make use of cache feature committed in XmlSchema project under WSCOMMONS-391 in SVN 699014 Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/DescriptionFactory.java Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/DescriptionFactory.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/DescriptionFactory.java?rev=701415&r1=701414&r2=701415&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/DescriptionFactory.java (original) +++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/DescriptionFactory.java Fri Oct 3 08:38:58 2008 @@ -26,6 +26,7 @@ import org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite; import org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator; import org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl; +import org.apache.ws.commons.schema.SchemaBuilder; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -456,7 +457,10 @@ */ public static List createServiceDescriptionFromDBCMap( HashMap dbcMap) { - return DescriptionFactoryImpl.createServiceDescriptionFromDBCMap(dbcMap, null); + SchemaBuilder.initCache(); // turn on static XmlSchema object caching in SchemaBuilder + List listSD = DescriptionFactoryImpl.createServiceDescriptionFromDBCMap(dbcMap, null); + SchemaBuilder.clearCache(); // turn off caching so we don't break everybody else + return listSD; } /**