From: Scott M S. <st...@us...> - 2002-05-26 20:47:35
|
User: starksm Date: 02/05/26 13:47:34 Modified: src/main/org/jboss/test/jmx/loading Tag: Branch_3_0 ResourceTsts.java Added: src/main/org/jboss/test/jmx/loading Tag: Branch_3_0 NoopService.java NoopServiceMBean.java Log: Add tests of a jboss-service.xml importing content using an external entity reference Revision Changes Path No revision No revision 1.1.2.4 +6 -5 jbosstest/src/main/org/jboss/test/jmx/loading/ResourceTsts.java Index: ResourceTsts.java =================================================================== RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/jmx/loading/ResourceTsts.java,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -u -r1.1.2.3 -r1.1.2.4 --- ResourceTsts.java 24 May 2002 16:20:59 -0000 1.1.2.3 +++ ResourceTsts.java 26 May 2002 20:47:34 -0000 1.1.2.4 @@ -11,7 +11,7 @@ import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; -import org.apache.log4j.Category; +import org.jboss.logging.Logger; import org.jboss.system.ServiceMBeanSupport; import org.xml.sax.Attributes; import org.xml.sax.SAXException; @@ -20,11 +20,10 @@ /** This service access xml files as config resources from via the TCL * * @author Sco...@jb... - * @version $Revision: 1.1.2.3 $ + * @version $Revision: 1.1.2.4 $ */ public class ResourceTsts extends ServiceMBeanSupport implements ResourceTstsMBean { - static Category log = Category.getInstance(ResourceTsts.class); private String namespace = null; public ResourceTsts() @@ -69,7 +68,7 @@ InputStream is = url1.openStream(); SAXParserFactory factory = SAXParserFactory.newInstance(); SAXParser parser = factory.newSAXParser(); - ConfigHandler handler = new ConfigHandler(namespace); + ConfigHandler handler = new ConfigHandler(namespace, log); parser.parse(is, handler); log.debug("Successfully parsed url1"); is.close(); @@ -82,13 +81,15 @@ static class ConfigHandler extends DefaultHandler { + Logger log; boolean optionTag; StringBuffer value = new StringBuffer(); String namespace; - ConfigHandler(String namespace) + ConfigHandler(String namespace, Logger log) { this.namespace = namespace; + this.log = log; } public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException No revision No revision 1.1.2.1 +24 -0 jbosstest/src/main/org/jboss/test/jmx/loading/Attic/NoopService.java 1.1.2.1 +19 -0 jbosstest/src/main/org/jboss/test/jmx/loading/Attic/NoopServiceMBean.java |