avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-avalon-apps/simpleserver/src/java/org/apache/avalon/simpleserver SimpleServer.java
Date Sun, 12 May 2002 10:49:11 GMT
hammant     02/05/12 03:49:11

  Modified:    simpleserver/src/java/org/apache/avalon/simpleserver
                        SimpleServer.java
  Added:       simpleserver/lib avalon-framework.jar
  Removed:     simpleserver/lib avalon-framework-4.1.2.jar
  Log:
  compose(..) becomes service(..)
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-apps/simpleserver/lib/avalon-framework.jar
  
  	<<Binary file>>
  
  
  1.4       +11 -11    jakarta-avalon-apps/simpleserver/src/java/org/apache/avalon/simpleserver/SimpleServer.java
  
  Index: SimpleServer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-apps/simpleserver/src/java/org/apache/avalon/simpleserver/SimpleServer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SimpleServer.java	22 Dec 2001 11:05:59 -0000	1.3
  +++ SimpleServer.java	12 May 2002 10:49:11 -0000	1.4
  @@ -33,9 +33,9 @@
   import org.apache.avalon.cornerstone.services.store.Store;
   import org.apache.avalon.framework.activity.Initializable;
   import org.apache.avalon.framework.component.Component;
  -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.service.ServiceException;
  +import org.apache.avalon.framework.service.ServiceManager;
  +import org.apache.avalon.framework.service.Serviceable;
   import org.apache.avalon.framework.configuration.Configurable;
   import org.apache.avalon.framework.configuration.Configuration;
   import org.apache.avalon.framework.configuration.ConfigurationException;
  @@ -62,7 +62,7 @@
    */
   public class SimpleServer
       extends AbstractLogEnabled
  -    implements Block, SimpleService, Contextualizable, Composable, Configurable, Initializable,
  +    implements Block, SimpleService, Contextualizable, Serviceable, Configurable, Initializable,
                  ConnectionHandlerFactory, ConnectionHandler, Target, PacketHandler, PacketHandlerFactory
   {
       private TimeScheduler           m_timeScheduler;
  @@ -87,14 +87,14 @@
           return m_context;
       }
   
  -    public void compose( final ComponentManager componentManager )
  -        throws ComponentException
  +    public void service( final ServiceManager serviceManager )
  +        throws ServiceException
       {
  -        m_testStore = (Store)componentManager.lookup( Store.ROLE );
  -        m_socketManager = (SocketManager)componentManager.lookup( SocketManager.ROLE );
  -        m_connectionManager = (ConnectionManager)componentManager.lookup( ConnectionManager.ROLE
);
  -        m_timeScheduler = (TimeScheduler)componentManager.lookup( TimeScheduler.ROLE );
  -        m_packetManager = (PacketManager)componentManager.lookup( PacketManager.ROLE );
  +        m_testStore = (Store)serviceManager.lookup( Store.ROLE );
  +        m_socketManager = (SocketManager)serviceManager.lookup( SocketManager.ROLE );
  +        m_connectionManager = (ConnectionManager)serviceManager.lookup( ConnectionManager.ROLE
);
  +        m_timeScheduler = (TimeScheduler)serviceManager.lookup( TimeScheduler.ROLE );
  +        m_packetManager = (PacketManager)serviceManager.lookup( PacketManager.ROLE );
       }
   
       public void configure( final Configuration configuration )
  
  
  

--
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