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/kernel/impl/src/java/org/apache/avalon/merlin/kernel/impl DefaultFactory.java
Date Sun, 23 Nov 2003 02:26:20 GMT
mcconnell    2003/11/22 18:26:20

  Modified:    kernel/impl/src/java/org/apache/avalon/merlin/kernel/impl
                        DefaultFactory.java
  Log:
  Move factory to a map to allow non-depednece on repository.
  
  Revision  Changes    Path
  1.2       +15 -2     avalon-sandbox/kernel/impl/src/java/org/apache/avalon/merlin/kernel/impl/DefaultFactory.java
  
  Index: DefaultFactory.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/kernel/impl/src/java/org/apache/avalon/merlin/kernel/impl/DefaultFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultFactory.java	23 Nov 2003 00:47:06 -0000	1.1
  +++ DefaultFactory.java	23 Nov 2003 02:26:20 -0000	1.2
  @@ -4,6 +4,7 @@
   
   import java.io.File;
   import java.net.URL;
  +import java.util.Map;
   
   import org.apache.avalon.excalibur.i18n.ResourceManager;
   import org.apache.avalon.excalibur.i18n.Resources;
  @@ -133,9 +134,21 @@
           return new DefaultCriteria( TEMPLATE );
       }
   
  -    public Object create( Criteria criteria )
  +    public Object create( Map map )
       {
  -        System.out.println( "CRITERIA: " + criteria );
  +
  +        //
  +        // Alex - over to you.  The supplied map
  +        // has a set of values bound to keys defined in 
  +        // the DefaultFactory (see kernel/impl package 
  +        // in sandbox.  All we need to do now is to 
  +        // combine this top-level directives with 
  +        // static defaults, environment variables and 
  +        // synbol parsing and we are home free.
  +        //
  +
  +
  +        System.out.println( "CRITERIA: " + map );
           return null;
       }
   }
  
  
  

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


Mime
View raw message