avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon-sandbox/merlin/composition-spi/src/java/org/apache/avalon/composition/model ClassLoaderModel.java TypeRepository.java
Date Sat, 05 Jul 2003 07:56:45 GMT
mcconnell    2003/07/05 00:56:45

  Modified:    merlin/composition-spi/src/java/org/apache/avalon/composition/model
                        ClassLoaderModel.java TypeRepository.java
  Log:
  Update the classloader model defintion to include exposure of a type repository and update
the defitinition of the type repository to limit operations to retrieval only.
  
  Revision  Changes    Path
  1.3       +8 -1      avalon-sandbox/merlin/composition-spi/src/java/org/apache/avalon/composition/model/ClassLoaderModel.java
  
  Index: ClassLoaderModel.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/merlin/composition-spi/src/java/org/apache/avalon/composition/model/ClassLoaderModel.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ClassLoaderModel.java	4 Jul 2003 15:24:55 -0000	1.2
  +++ ClassLoaderModel.java	5 Jul 2003 07:56:45 -0000	1.3
  @@ -73,6 +73,13 @@
       TypeRepository getTypeRepository();
   
      /**
  +    * Return the classloader model service repository.
  +    *
  +    * @return the repository
  +    */
  +    ServiceRepository getServiceRepository();
  +
  +   /**
       * Return the optional extensions manager.
       * @return the extension manager
       */
  
  
  
  1.2       +1 -32     avalon-sandbox/merlin/composition-spi/src/java/org/apache/avalon/composition/model/TypeRepository.java
  
  Index: TypeRepository.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/merlin/composition-spi/src/java/org/apache/avalon/composition/model/TypeRepository.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TypeRepository.java	4 Jul 2003 07:28:21 -0000	1.1
  +++ TypeRepository.java	5 Jul 2003 07:56:45 -0000	1.2
  @@ -64,37 +64,6 @@
   public interface TypeRepository
   {
       /**
  -     * Create a new type instance.  The type instance returned is not
  -     * registered with the manager.  To register the type the client
  -     * must explicity declare the type using the {@link #addType}
  -     * operation.
  -     *
  -     * @param clazz the component implementation class
  -     * @return the component type
  -     * @exception TypeException is a type creation error occurs
  -     * @see #addType
  -     */
  -    Type createType( Class clazz ) throws TypeException;
  -
  -    /**
  -     * Create a type instance based on a supplied classname and classloader.
  -     *
  -     * @param classname the component implementation classname
  -     * @return the component type
  -     * @exception TypeException is a type creation error occurs
  -     */
  -    Type createType( String classname ) throws TypeException;
  -
  -    /**
  -     * Add a type to the manager.
  -     * @param type the component type description.
  -     * @exception DuplicateTypeException if the supplied type is already registered
  -     * @exception TypeException if a type verification failure occurs
  -     * @see #createType
  -     */
  -    void addType( Type type ) throws TypeDuplicateException, TypeException;
  -
  -    /**
        * Locate a {@link Type} instances associated with the
        * supplied implementation classname.
        * @param clazz the component type implementation class.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message