avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/xmlutil/src/java/org/apache/avalon/excalibur/xml JaxpParser.java
Date Sun, 04 Aug 2002 04:27:40 GMT
donaldp     2002/08/03 21:27:40

  Modified:    xmlutil/src/java/org/apache/avalon/excalibur/xml
                        JaxpParser.java
  Log:
  Made class Serviceable rather than Composable
  
  Revision  Changes    Path
  1.4       +8 -8      jakarta-avalon-excalibur/xmlutil/src/java/org/apache/avalon/excalibur/xml/JaxpParser.java
  
  Index: JaxpParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/xmlutil/src/java/org/apache/avalon/excalibur/xml/JaxpParser.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JaxpParser.java	10 Jul 2002 08:53:17 -0000	1.3
  +++ JaxpParser.java	4 Aug 2002 04:27:40 -0000	1.4
  @@ -13,13 +13,13 @@
   import javax.xml.parsers.ParserConfigurationException;
   import javax.xml.parsers.SAXParserFactory;
   import org.apache.avalon.excalibur.pool.Poolable;
  -import org.apache.avalon.framework.component.ComponentException;
  -import org.apache.avalon.framework.component.ComponentManager;
  -import org.apache.avalon.framework.component.Composable;
   import org.apache.avalon.framework.logger.AbstractLogEnabled;
   import org.apache.avalon.framework.parameters.ParameterException;
   import org.apache.avalon.framework.parameters.Parameterizable;
   import org.apache.avalon.framework.parameters.Parameters;
  +import org.apache.avalon.framework.service.Serviceable;
  +import org.apache.avalon.framework.service.ServiceManager;
  +import org.apache.avalon.framework.service.ServiceException;
   import org.w3c.dom.Document;
   import org.xml.sax.ContentHandler;
   import org.xml.sax.ErrorHandler;
  @@ -73,7 +73,7 @@
    */
   public final class JaxpParser
       extends AbstractLogEnabled
  -    implements Parser, ErrorHandler, Composable, Parameterizable, Poolable
  +    implements Parser, ErrorHandler, Serviceable, Parameterizable, Poolable
   {
       /** the SAX Parser factory */
       private SAXParserFactory m_factory;
  @@ -107,10 +107,10 @@
       /**
        * Get the Entity Resolver from the component manager
        */
  -    public void compose( final ComponentManager manager )
  -        throws ComponentException
  +    public void service( final ServiceManager manager )
  +        throws ServiceException
       {
  -        if( manager.hasComponent( EntityResolver.ROLE ) )
  +        if( manager.hasService( EntityResolver.ROLE ) )
           {
               m_resolver = (EntityResolver)manager.lookup( EntityResolver.ROLE );
               if( getLogger().isDebugEnabled() )
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message