You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by co...@apache.org on 2001/05/15 23:36:53 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/serialize SerializerFactory.java

costin      01/05/15 14:36:52

  Modified:    java/src/org/apache/xalan/processor
                        CompilingStylesheetHandler.java
               java/src/org/apache/xalan/serialize SerializerFactory.java
  Log:
  2 more instances where Class.forName was used.
  
  Use the method in ExtensionHandler for consistency ( we could move it in
  org.apache.xml.utils, but for now it's easier to just use it as it is )
  
  Revision  Changes    Path
  1.24      +3 -1      xml-xalan/java/src/org/apache/xalan/processor/CompilingStylesheetHandler.java
  
  Index: CompilingStylesheetHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/processor/CompilingStylesheetHandler.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- CompilingStylesheetHandler.java	2001/01/02 03:36:41	1.23
  +++ CompilingStylesheetHandler.java	2001/05/15 21:36:38	1.24
  @@ -70,6 +70,7 @@
   import org.apache.xalan.templates.StylesheetRoot;
   import org.apache.xalan.templates.Stylesheet;
   import org.apache.xalan.templates.XMLNSDecl;
  +import org.apache.xalan.extensions.ExtensionHandler;
   import javax.xml.transform.TransformerConfigurationException;
   import javax.xml.transform.Templates;
   import javax.xml.transform.TransformerException;
  @@ -1007,7 +1008,8 @@
              
           // Now try to load it!
           try {
  -            resolved=Class.forName(tClass.getName());
  +	    // resolved=Class.forName(tClass.getName());
  +            resolved=ExtensionHandler.getClassForName(tClass.getName());
               tClass.setRealClass(resolved);
           }
           catch(ClassNotFoundException e)
  
  
  
  1.3       +4 -1      xml-xalan/java/src/org/apache/xalan/serialize/SerializerFactory.java
  
  Index: SerializerFactory.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/serialize/SerializerFactory.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SerializerFactory.java	2000/12/06 05:37:09	1.2
  +++ SerializerFactory.java	2001/05/15 21:36:47	1.3
  @@ -67,6 +67,7 @@
   import java.io.InputStream;
   
   import org.apache.xalan.templates.OutputProperties;
  +import org.apache.xalan.extensions.ExtensionHandler;
   import org.apache.xml.utils.WrappedRuntimeException;
   
   /**
  @@ -124,7 +125,9 @@
               + OutputProperties.S_KEY_CONTENT_HANDLER + "' property!");
           }
   
  -        cls = Class.forName(className);
  +        //cls = Class.forName(className);
  +	// XXX move to a "xalan/util" class
  +	cls= ExtensionHandler.getClassForName( className );
   
           // _serializers.put(method, cls);
         }
  
  
  

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