mcconnell    2002/09/16 14:53:12

  Added:       assembly/src/java/org/apache/excalibur/merlin/service
                        ServicePublisher.java ServiceLocator.java
  Log:
  Interfaces that more cleanly seperate levels of disclosure of a service 
registry.
  
  Revision  Changes    Path
  1.1                  
jakarta-avalon-excalibur/assembly/src/java/org/apache/excalibur/merlin/service/ServicePublisher.java
  
  Index: ServicePublisher.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.excalibur.merlin.service;
  
  import org.apache.excalibur.merlin.model.Resource;
  
  /**
   * Interface used to register an established service.
   *
   * @author <a href="mailto:[EMAIL PROTECTED]">Stephen McConnell</a>
   * @version $Revision: 1.1 $ $Date: 2002/09/16 21:53:12 $
   */
  public interface ServicePublisher extends ServiceLocator
  {
     /**
      * Returns a list of published resources.
      * @return the resources
      */
      Resource[] getResources();
  }
  
  
  
  
  1.1                  
jakarta-avalon-excalibur/assembly/src/java/org/apache/excalibur/merlin/service/ServiceLocator.java
  
  Index: ServiceLocator.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.excalibur.merlin.service;
  
  import java.net.URL;
  
  import org.apache.excalibur.merlin.model.Resource;
  
  /**
   * Interface used to register an established service.
   *
   * @author <a href="mailto:[EMAIL PROTECTED]">Stephen McConnell</a>
   * @version $Revision: 1.1 $ $Date: 2002/09/16 21:53:12 $
   */
  public interface ServiceLocator
  {
     /**
      * Returns the base locator URL.
      *
      * @return the locator url
      */
      public URL getBase();
  
     /**
      * Select a set of service based on a supplied filter.  A filter is 
      * supplied in the form of a String.  Interpritation of string follows 
      * normal URI semantics (path, query, and reference elements are protocol 
      * dependent).
      *
      * @param uri the service uri
      * @exception Exception is an install error occurs
      */
      Resource locate( String uri ) throws UnknownServiceException, 
InvalidPathException;
  
  }
  
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to