axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <dava...@gmail.com>
Subject Re: svn commit: r348141 - /webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/saaj/NodeImpl.java
Date Sat, 03 Dec 2005 23:01:26 GMT
Hmm...Please don't do this. If the NodeImpl class gets loaded the
ENTIRE JVM will start using our Document Builder Factory.

thanks,
-- dims

On 12/3/05, ruchithf@apache.org <ruchithf@apache.org> wrote:
> Author: ruchithf
> Date: Tue Nov 22 02:17:13 2005
> New Revision: 348141
>
> URL: http://svn.apache.org/viewcvs?rev=348141&view=rev
> Log:
> Makeing the saaj imple use the OM-DOM Dom impl
>
>
> Modified:
>     webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/saaj/NodeImpl.java
>
> Modified: webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/saaj/NodeImpl.java
> URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/saaj/NodeImpl.java?rev=348141&r1=348140&r2=348141&view=diff
> ==============================================================================
> --- webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/saaj/NodeImpl.java
(original)
> +++ webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/saaj/NodeImpl.java
Tue Nov 22 02:17:13 2005
> @@ -21,6 +21,7 @@
>  import org.apache.axis2.om.OMNode;
>  import org.apache.axis2.om.OMText;
>  import org.apache.axis2.om.impl.OMNodeEx;
> +import org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl;
>  import org.apache.axis2.util.Dom2OmUtils;
>  import org.w3c.dom.DOMException;
>  import org.w3c.dom.Document;
> @@ -36,7 +37,12 @@
>   * Class NodeImpl
>   */
>  public class NodeImpl implements Node {
> -
> +
> +       static {
> +               System.setProperty("javax.xml.parsers.DocumentBuilderFactory",DocumentBuilderFactoryImpl.class.getName());
> +       }
> +
> +
>      /**
>       * Field omNode
>       */
>
>
>


--
Davanum Srinivas : http://wso2.com/blogs/

Mime
View raw message