ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/service ServiceRegistry.java
Date Mon, 06 May 2002 10:38:02 GMT
donaldp     02/05/06 03:38:02

  Added:       container/src/java/org/apache/myrmidon/interfaces/service
                        ServiceRegistry.java
  Log:
  Start adding in ServiceRegistry
  
  Revision  Changes    Path
  1.1                  jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/service/ServiceRegistry.java
  
  Index: ServiceRegistry.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.interfaces.service;
  
  import org.apache.avalon.framework.service.ServiceException;
  
  /**
   * The interface for registering Services in the current frame.
   *
   * @author <a href="mailto:peter@apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/05/06 10:38:02 $
   */
  public interface ServiceRegistry
  {
      /** Role name for this interface. */
      String ROLE = ServiceRegistry.class.getName();
  
      /**
       * Register a service in runtime.
       *
       * @param roleName the role under which to register service
       * @param service the actual service to register
       * @throws ServiceException if error registering service
       */
      void registerService( String roleName, Object service )
          throws ServiceException;
  }
  
  
  

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


Mime
View raw message