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 ResourceProvider.java
Date Fri, 12 Jul 2002 11:58:14 GMT
mcconnell    2002/07/12 04:58:14

  Added:       assembly/src/java/org/apache/excalibur/merlin
                        ResourceProvider.java
  Log:
  Was in meta-model packages - moved up because the meta model is not dependent on this class
(its a bridge between model elements and container implemetation)
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-excalibur/assembly/src/java/org/apache/excalibur/merlin/ResourceProvider.java
  
  Index: ResourceProvider.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;
  
  import org.apache.avalon.framework.component.ComponentManager;
  import org.apache.avalon.framework.configuration.Configuration;
  import org.apache.avalon.framework.context.Context;
  import org.apache.avalon.framework.logger.Logger;
  import org.apache.avalon.framework.parameters.Parameters;
  import org.apache.avalon.framework.service.ServiceManager;
  
  import org.apache.excalibur.merlin.model.Profile;
  
  /**
   * The interface via which resources required for a component
   * are aquired based on a supplied {@link Profile}.
   *
   * @author <a href="mailto:peter@apache.org">Peter Donald</a>
   * @author <a href="mailto:mcconnell@apache.org">Stephen McConnell</a>
   * @version $Revision: 1.1 $ $Date: 2002/07/12 11:58:14 $
   */
  public interface ResourceProvider
  {
      /**
       * Create an object specified by profile.
       *
       * @param profile the profile
       * @return the new object
       * @throws Exception if unable to create resource
       */
      Object createObject( Profile profile )
          throws Exception;
  
      /**
       * Create a new Logger for component.
       *
       * @param profile the profile
       * @return a new Logger for component
       * @throws Exception if unable to create resource
       */
      Logger createLogger( Profile profile )
          throws Exception;
  
      /**
       * Create a new Context for component.
       *
       * @param profile the profile
       * @return a new Context for component
       * @throws Exception if unable to create resource
       */
      Context createContext( Profile profile )
          throws Exception;
  
      /**
       * Create a new ComponentManager for component.
       *
       * @param profile the profile
       * @return a new ComponentManager for component
       * @throws Exception if unable to create resource
       */
      ComponentManager createComponentManager( Profile profile )
          throws Exception;
  
      /**
       * Create a new ServiceManager for component.
       *
       * @param profile the profile
       * @return a new ServiceManager for component
       * @throws Exception if unable to create resource
       */
      ServiceManager createServiceManager( Profile profile )
          throws Exception;
  
      /**
       * Create a new Configuration object for component.
       *
       * @param profile the profile
       * @return a new Configuration object for component
       * @throws Exception if unable to create resource
       */
      Configuration createConfiguration( Profile profile )
          throws Exception;
  
      /**
       * Create a new Parameters object for component.
       *
       * @param profile the profile
       * @return a new Parameters object for component
       * @throws Exception if unable to create resource
       */
      Parameters createParameters( Profile profile )
          throws Exception;
  
     /**
      * Requests to release all references to a profile and associated 
      * service instances.
      * @param profile the profile to release
      */
      public void release( Profile profile );
  
  }
  
  
  

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