You are viewing a plain text version of this content. The canonical link for it is here.
Posted to crimson-cvs@xml.apache.org by ed...@apache.org on 2001/09/29 02:17:28 UTC

cvs commit: xml-crimson/src/org/xml/sax/helpers NewInstance.java

edwingo     01/09/28 17:17:28

  Modified:    src/org/xml/sax/helpers NewInstance.java
  Log:
  Added comments so code can be contributed to back to main SAX distribution.
  
  Revision  Changes    Path
  1.2       +24 -5     xml-crimson/src/org/xml/sax/helpers/NewInstance.java
  
  Index: NewInstance.java
  ===================================================================
  RCS file: /home/cvs/xml-crimson/src/org/xml/sax/helpers/NewInstance.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NewInstance.java	2001/04/05 00:52:32	1.1
  +++ NewInstance.java	2001/09/29 00:17:28	1.2
  @@ -1,11 +1,30 @@
  +// NewInstance.java - create a new instance of a class by name.
  +// Written by Edwin Goei, edwingo@apache.org
  +// NO WARRANTY!  This class is in the Public Domain.
  +
  +// $Id: NewInstance.java,v 1.2 2001/09/29 00:17:28 edwingo Exp $
  +
   package org.xml.sax.helpers;
   
   /**
  - * This code is designed to run on JDK version 1.1 and later including JVMs
  - * that perform early linking like the Microsoft JVM in IE 5.  Note however
  - * that it must be compiled on a JDK version 1.2 or later system since it
  - * calls Thread#getContextClassLoader().  The code also runs both as part
  - * of an unbundled jar file and when bundled as part of the JDK.
  + * Create a new instance of a class by name.
  + *
  + * <blockquote>
  + * <em>This module, both source code and documentation, is in the
  + * Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
  + * </blockquote>
  + *
  + * <p>This class contains a static method for creating an instance of a
  + * class from an explicit class name.  It tries to use the thread's context
  + * ClassLoader if possible and falls back to using
  + * Class.forName(String).</p>
  + *
  + * <p>This code is designed to run on JDK version 1.1 and later including
  + * JVMs that perform early linking like the Microsoft JVM in IE 5.  Note
  + * however that it must be compiled on a JDK version 1.2 or later system
  + * since it calls Thread#getContextClassLoader().  The code also runs both
  + * as part of an unbundled jar file and when bundled as part of the
  + * JDK.</p>
    */
   class NewInstance {
       /**
  
  
  

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