Author: chris.laprun(a)jboss.com
Date: 2011-10-25 11:07:11 -0400 (Tue, 25 Oct 2011)
New Revision: 7873
Modified:
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/services/SOAPServiceFactory.java
Log:
- Minor optimization.
Modified:
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/services/SOAPServiceFactory.java
===================================================================
---
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/services/SOAPServiceFactory.java 2011-10-25
14:32:11 UTC (rev 7872)
+++
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/services/SOAPServiceFactory.java 2011-10-25
15:07:11 UTC (rev 7873)
@@ -557,14 +557,26 @@
}
}
- protected class WSDLInfo
+ protected static class WSDLInfo
{
private final QName wsrp2ServiceQName;
private final QName wsrp1ServiceQName;
+ private final static WSDLFactory wsdlFactory;
+ static
+ {
+ try
+ {
+ wsdlFactory = WSDLFactory.newInstance();
+ }
+ catch (WSDLException e)
+ {
+ throw new RuntimeException(e);
+ }
+ }
+
public WSDLInfo(String wsdlURL) throws WSDLException
{
- WSDLFactory wsdlFactory = WSDLFactory.newInstance();
WSDLReader wsdlReader = wsdlFactory.newWSDLReader();
wsdlReader.setFeature("javax.wsdl.verbose", false);
Show replies by date