Return-Path: Delivered-To: apmail-avalon-cvs-archive@www.apache.org Received: (qmail 98394 invoked from network); 25 Nov 2003 19:12:44 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 25 Nov 2003 19:12:44 -0000 Received: (qmail 59781 invoked by uid 500); 25 Nov 2003 18:55:08 -0000 Delivered-To: apmail-avalon-cvs-archive@avalon.apache.org Received: (qmail 59707 invoked by uid 500); 25 Nov 2003 18:55:07 -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 59694 invoked by uid 500); 25 Nov 2003 18:55:07 -0000 Received: (qmail 59688 invoked from network); 25 Nov 2003 18:55:07 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 25 Nov 2003 18:55:07 -0000 Received: (qmail 90825 invoked by uid 1438); 25 Nov 2003 18:55:15 -0000 Date: 25 Nov 2003 18:55:15 -0000 Message-ID: <20031125185515.90824.qmail@minotaur.apache.org> From: mcconnell@apache.org To: avalon-sandbox-cvs@apache.org Subject: cvs commit: avalon-sandbox/repository/spi/src/java/org/apache/avalon/repository/criteria AbstractCriteria.java ValidationException.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N mcconnell 2003/11/25 10:55:15 Modified: repository maven.xml platform.xml project.properties repository/impl/src/java/org/apache/avalon/repository/impl DefaultRepositoryCriteria.java repository/site/xdocs index.xml repository/site/xdocs/about index.xml repository/site/xdocs/resources roadmap.xml repository/site/xdocs/start index.xml repository/spi/src/java/org/apache/avalon/repository/criteria AbstractCriteria.java ValidationException.java Log: Dpoc updates and improvements to the AbstractCriteria class. Revision Changes Path 1.10 +2 -3 avalon-sandbox/repository/maven.xml Index: maven.xml =================================================================== RCS file: /home/cvs/avalon-sandbox/repository/maven.xml,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- maven.xml 23 Nov 2003 20:17:55 -0000 1.9 +++ maven.xml 25 Nov 2003 18:55:15 -0000 1.10 @@ -8,8 +8,8 @@ - + - - + 1.5 +4 -19 avalon-sandbox/repository/platform.xml Index: platform.xml =================================================================== RCS file: /home/cvs/avalon-sandbox/repository/platform.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- platform.xml 24 Nov 2003 21:25:42 -0000 1.4 +++ platform.xml 25 Nov 2003 18:55:15 -0000 1.5 @@ -28,28 +28,13 @@ - API - org.apache.avalon.repository + API/SPI + org.apache.avalon.repository,org.apache.avalon.repository.criteria,org.apache.avalon.repository.meta - SPI - org.apache.avalon.repository.criteria,org.apache.avalon.repository.meta - - - - Reference Implementation - org.apache.avalon.repository.impl - - - - Bootstrap - org.apache.avalon.repository.main - - - - Utilities - org.apache.avalon.repository.util + Reference Implementation and Bootstrap + org.apache.avalon.repository.impl,org.apache.avalon.repository.main,org.apache.avalon.repository.util 1.7 +1 -1 avalon-sandbox/repository/project.properties Index: project.properties =================================================================== RCS file: /home/cvs/avalon-sandbox/repository/project.properties,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- project.properties 23 Nov 2003 20:17:55 -0000 1.6 +++ project.properties 25 Nov 2003 18:55:15 -0000 1.7 @@ -15,6 +15,6 @@ # file. # -sun.j2ee.link = http://java.sun.com/j2ee/1.4/docs/api/ +sun.j2se.link = http://java.sun.com/j2ee/1.4/docs/api/ avalon.util.link = http://avalon.apache.org/merlin/api/ maven.javadoc.links = ${sun.j2se.link},${avalon.util.link} 1.3 +4 -26 avalon-sandbox/repository/impl/src/java/org/apache/avalon/repository/impl/DefaultRepositoryCriteria.java Index: DefaultRepositoryCriteria.java =================================================================== RCS file: /home/cvs/avalon-sandbox/repository/impl/src/java/org/apache/avalon/repository/impl/DefaultRepositoryCriteria.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- DefaultRepositoryCriteria.java 24 Nov 2003 09:43:31 -0000 1.2 +++ DefaultRepositoryCriteria.java 25 Nov 2003 18:55:15 -0000 1.3 @@ -118,6 +118,8 @@ */ public DefaultRepositoryCriteria() throws RepositoryException { + super( PARAMS ); + Properties bootstrap = getDefaultProperties(); // @@ -196,20 +198,10 @@ } } - //-------------------------------------------------------------- // Criteria //-------------------------------------------------------------- - /** - * Return the parameter associated to the criteria. - * @return the parameters - */ - public Parameter[] getParameters() - { - return PARAMS; - } - public String toString() { return "[repository: " + getMap() + "]"; @@ -221,23 +213,9 @@ private Properties getDefaultProperties() throws RepositoryException { - Properties bootstrap = new Properties(); try { - InputStream input = - DefaultRepositoryCriteria.class.getResourceAsStream( DEFAULTS ); - if( input == null ) - { - final String error = - "Internal error, unable to locate enbedded resource: " - + DEFAULTS - + " from the resource: " - + DefaultRepositoryCriteria.class.getProtectionDomain() - .getCodeSource().getLocation(); - throw new IllegalStateException( error ); - } - bootstrap.load( input ); - return bootstrap; + return Defaults.getStaticProperties( DefaultRepositoryCriteria.class, DEFAULTS ); } catch ( IOException e ) { 1.2 +1 -1 avalon-sandbox/repository/site/xdocs/index.xml Index: index.xml =================================================================== RCS file: /home/cvs/avalon-sandbox/repository/site/xdocs/index.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- index.xml 23 Nov 2003 20:17:55 -0000 1.1 +++ index.xml 25 Nov 2003 18:55:15 -0000 1.2 @@ -63,7 +63,7 @@

-The Avalon Repository is a Java API, +The Avalon Repository is a Java API, SPI, reference implementation and bootstrap platform that provides support for the dynamic artifact loading, classloader chain 1.2 +1 -1 avalon-sandbox/repository/site/xdocs/about/index.xml Index: index.xml =================================================================== RCS file: /home/cvs/avalon-sandbox/repository/site/xdocs/about/index.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- index.xml 23 Nov 2003 20:17:55 -0000 1.1 +++ index.xml 25 Nov 2003 18:55:15 -0000 1.2 @@ -64,7 +64,7 @@

-The Avalon Repository is a Java API, +The Avalon Repository is a Java API, SPI, reference implementation and bootstrap platform that provides support for the dynamic artifact loading, classloader chain 1.2 +2 -1 avalon-sandbox/repository/site/xdocs/resources/roadmap.xml Index: roadmap.xml =================================================================== RCS file: /home/cvs/avalon-sandbox/repository/site/xdocs/resources/roadmap.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- roadmap.xml 23 Nov 2003 20:17:55 -0000 1.1 +++ roadmap.xml 25 Nov 2003 18:55:15 -0000 1.2 @@ -57,8 +57,9 @@

- + +

IN PREPARATION

1.2 +1 -1 avalon-sandbox/repository/site/xdocs/start/index.xml Index: index.xml =================================================================== RCS file: /home/cvs/avalon-sandbox/repository/site/xdocs/start/index.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- index.xml 23 Nov 2003 20:17:56 -0000 1.1 +++ index.xml 25 Nov 2003 18:55:15 -0000 1.2 @@ -62,7 +62,7 @@ - +
TopicDescription
InstallationInstallation Instalation instructions for binary installs and CVS based builds. 1.2 +56 -20 avalon-sandbox/repository/spi/src/java/org/apache/avalon/repository/criteria/AbstractCriteria.java Index: AbstractCriteria.java =================================================================== RCS file: /home/cvs/avalon-sandbox/repository/spi/src/java/org/apache/avalon/repository/criteria/AbstractCriteria.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- AbstractCriteria.java 24 Nov 2003 09:11:43 -0000 1.1 +++ AbstractCriteria.java 25 Nov 2003 18:55:15 -0000 1.2 @@ -78,9 +78,34 @@ // state //-------------------------------------------------------------- + private final Parameter[] m_params; + + private final String[] m_keys; + private final Hashtable m_bindings = new Hashtable(); //-------------------------------------------------------------- + // constructor + //-------------------------------------------------------------- + + /** + * Creation of a new criteria instance. + * @param params the set of parameters managed by the criteria + */ + public AbstractCriteria( Parameter[] params ) + { + if( null == params ) + throw new NullPointerException( "params" ); + + m_params = params; + m_keys = new String[ params.length ]; + for( int i=0; iStephen McConnell * @version $Revision$ */ -public class ValidationException extends RepositoryException +public class ValidationException extends RepositoryRuntimeException { /** --------------------------------------------------------------------- To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org For additional commands, e-mail: cvs-help@avalon.apache.org