donaldp 2002/07/10 01:38:48
Modified: xmlutil/src/java/org/apache/avalon/excalibur/xml
XercesParser.java
Log:
Add a warning that is displayed when it is initially created. (Once in case of
cocoon).
Revision Changes Path
1.5 +13 -3
jakarta-avalon-excalibur/xmlutil/src/java/org/apache/avalon/excalibur/xml/XercesParser.java
Index: XercesParser.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/xmlutil/src/java/org/apache/avalon/excalibur/xml/XercesParser.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- XercesParser.java 10 Jul 2002 08:34:45 -0000 1.4
+++ XercesParser.java 10 Jul 2002 08:38:48 -0000 1.5
@@ -10,6 +10,7 @@
import java.io.IOException;
import org.apache.avalon.framework.logger.AbstractLogEnabled;
import org.apache.avalon.framework.thread.ThreadSafe;
+import org.apache.avalon.framework.activity.Initializable;
import org.apache.xerces.dom.DocumentImpl;
import org.apache.xerces.parsers.DOMParser;
import org.apache.xerces.parsers.SAXParser;
@@ -22,15 +23,24 @@
import org.xml.sax.ext.LexicalHandler;
/**
- *
* @author <a href="mailto:[EMAIL PROTECTED]">Pierpaolo Fumagalli</a>
* (Apache Software Foundation, Exoffice Technologies)
* @version CVS $Revision$ $Date$
*/
public class XercesParser
extends AbstractLogEnabled
- implements Parser, ErrorHandler, ThreadSafe
+ implements Parser, ErrorHandler, ThreadSafe, Initializable
{
+ public void initialize()
+ throws Exception
+ {
+ final String message =
+ "WARNING: XercesParser has been deprecated in favour of " +
+ "JaxpParser. Please use JaxpParser unless it is incompatible" +
+ "with your environment";
+ getLogger().warn( message );
+ }
+
public void parse( final InputSource in,
final ContentHandler consumer )
throws SAXException, IOException
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>