You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by he...@apache.org on 2003/06/19 16:57:21 UTC

cvs commit: jakarta-turbine-2/src/java/org/apache/turbine/services/intake/model FieldFactory.java

henning     2003/06/19 07:57:21

  Modified:    src/java/org/apache/turbine/services/intake/model
                        FieldFactory.java
  Log:
  Add the new field types "short" and "long" to the FieldFactory
  
  Patch donated by Colin Chalmers <co...@maxware.nl>
  
  Revision  Changes    Path
  1.8       +23 -4     jakarta-turbine-2/src/java/org/apache/turbine/services/intake/model/FieldFactory.java
  
  Index: FieldFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/intake/model/FieldFactory.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- FieldFactory.java	9 Mar 2003 03:06:27 -0000	1.7
  +++ FieldFactory.java	19 Jun 2003 14:57:20 -0000	1.8
  @@ -65,6 +65,7 @@
    *
    * @author <a href="mailto:jmcnally@collab.net">John McNally</a>
    * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a>
  + * @author <a href="mailto:Colin.Chalmers@maxware.nl">Colin Chalmers</a>
    * @version $Id$
    */
   public abstract class FieldFactory
  @@ -112,12 +113,12 @@
           }
           );
           fieldCtors.put("NumberKey", new FieldFactory.FieldCtor()
  -        {
  +        {       
               public Field getInstance(XmlField f, Group g)
                       throws IntakeException
  -            {
  +            {   
                   return new NumberKeyField(f, g);
  -            }
  +            }   
           }
           );
           fieldCtors.put("ComboKey", new FieldFactory.FieldCtor()
  @@ -171,6 +172,24 @@
                       throws IntakeException
               {
                   return new DoubleField(f, g);
  +            }
  +        }
  +        );
  +        fieldCtors.put("short", new FieldFactory.FieldCtor()
  +        {
  +            public Field getInstance(XmlField f, Group g)
  +                    throws IntakeException
  +            {
  +                return new ShortField(f, g);
  +            }
  +        }
  +        );
  +        fieldCtors.put("long", new FieldFactory.FieldCtor()
  +        {
  +            public Field getInstance(XmlField f, Group g)
  +                    throws IntakeException
  +            {
  +                return new LongField(f, g);
               }
           }
           );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org