avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/assembly/src/java/org/apache/excalibur/merlin/model ResourceDesignator.java
Date Thu, 18 Jul 2002 03:38:12 GMT
mcconnell    2002/07/17 20:38:12

  Added:       assembly/src/java/org/apache/excalibur/merlin/model
                        ResourceDesignator.java
  Log:
  moved to merlin/model from merlin/container
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-excalibur/assembly/src/java/org/apache/excalibur/merlin/model/ResourceDesignator.java
  
  Index: ResourceDesignator.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.model;
  
  import org.apache.excalibur.meta.info.ServiceDescriptor;
  
  /**
   * Interface implemented by object capable of supply a resources.
   *
   * @author <a href="mailto:mcconnell@apache.org">Stephen McConnell</a>
   * @version $Revision: 1.1 $ $Date: 2002/07/18 03:38:12 $
   */
  public interface ResourceDesignator
  {
  
      /**
       * Returns the designated resource path.
       *
       * @return the resource path
       */
      String getPath();
  
      /**
       * Returns the resource descriptor.
       *
       * @return the descriptor
       */
      ServiceDescriptor[] getServices();
  
      /**
       * Return the resource instance.
       *
       * @return an instance of the type constrained to the profile
       */
      Object getInstance() throws Exception;
  
      /**
       * Release the service instance.
       *
       * @exception LifecycleException if an error occurs while releasing the object
       */
      public void release() throws Exception;
  
      /**
       * Return the profile.
       *
       * @return the profile
       */
       Profile getProfile();
  
  }
  
  
  

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