Return-Path: Delivered-To: apmail-avalon-cvs-archive@avalon.apache.org Received: (qmail 37966 invoked by uid 500); 5 Jul 2003 07:56:45 -0000 Mailing-List: contact cvs-help@avalon.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon CVS List" Reply-To: "Avalon Developers List" Delivered-To: mailing list cvs@avalon.apache.org Received: (qmail 37955 invoked by uid 500); 5 Jul 2003 07:56:45 -0000 Received: (qmail 37952 invoked from network); 5 Jul 2003 07:56:45 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 5 Jul 2003 07:56:45 -0000 Received: (qmail 78000 invoked by uid 1438); 5 Jul 2003 07:56:45 -0000 Date: 5 Jul 2003 07:56:45 -0000 Message-ID: <20030705075645.77999.qmail@icarus.apache.org> From: mcconnell@apache.org To: avalon-sandbox-cvs@apache.org Subject: cvs commit: avalon-sandbox/merlin/composition-spi/src/java/org/apache/avalon/composition/model ClassLoaderModel.java TypeRepository.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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