You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rd...@apache.org on 2004/04/18 11:32:02 UTC

cvs commit: jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/io BeanRuleSet.java

rdonkin     2004/04/18 02:32:02

  Modified:    betwixt/src/java/org/apache/commons/betwixt/io Tag:
                        REFACTORING-BRANCH_2004-01-13 BeanRuleSet.java
  Log:
  Added constructor which had accidentally been removed
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.16.2.10 +30 -5     jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/io/BeanRuleSet.java
  
  Index: BeanRuleSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/io/BeanRuleSet.java,v
  retrieving revision 1.16.2.9
  retrieving revision 1.16.2.10
  diff -u -r1.16.2.9 -r1.16.2.10
  --- BeanRuleSet.java	13 Mar 2004 18:36:33 -0000	1.16.2.9
  +++ BeanRuleSet.java	18 Apr 2004 09:32:02 -0000	1.16.2.10
  @@ -166,6 +166,31 @@
        * @param basePath specifies the (Digester-style) path under which the rules will be attached
        * @param baseElementDescriptor the <code>ElementDescriptor</code> used to create the rules
        * @param baseBeanClass the <code>Class</code> whose mapping rules will be created
  +     * @param context the root Context that bean carrying Contexts should be obtained from, 
  +     * not null
  +     * @deprecated use the constructor which takes a ReadContext instead
  +     */
  +    public BeanRuleSet(
  +                        XMLIntrospector introspector,
  +                        String basePath, 
  +                        ElementDescriptor baseElementDescriptor, 
  +                        Class baseBeanClass,
  +                        Context context) {
  +        this(
  +            introspector,
  +            basePath,
  +            baseElementDescriptor,
  +            baseBeanClass,
  +            new ReadContext( context, new ReadConfiguration() ));
  +    }
  +
  +    /**
  +     * Base constructor.
  +     *
  +     * @param introspector the <code>XMLIntrospector</code> used to introspect 
  +     * @param basePath specifies the (Digester-style) path under which the rules will be attached
  +     * @param baseElementDescriptor the <code>ElementDescriptor</code> used to create the rules
  +     * @param baseBeanClass the <code>Class</code> whose mapping rules will be created
        * @param baseContext the root Context that bean carrying Contexts should be obtained from, 
        * not null
        */
  
  
  

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