commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly DynaBeanTagSupport.java
Date Tue, 25 Jun 2002 17:09:33 GMT
jstrachan    2002/06/25 10:09:32

  Modified:    jelly/src/java/org/apache/commons/jelly
                        DynaBeanTagSupport.java
  Log:
  Added support for bob's beforeSetAttributes() callback making it easy for DyanBeanSupport
derivations to handle the cleaning/construction of DynaBeans or other such data structures
  
  Revision  Changes    Path
  1.3       +9 -0      jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/DynaBeanTagSupport.java
  
  Index: DynaBeanTagSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/DynaBeanTagSupport.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DynaBeanTagSupport.java	18 Jun 2002 18:36:42 -0000	1.2
  +++ DynaBeanTagSupport.java	25 Jun 2002 17:09:32 -0000	1.3
  @@ -86,6 +86,12 @@
           this.dynaBean = dynaBean;
       }
        
  +    /** Sets the context in which the tag will be run */
  +    public void setContext(JellyContext context) throws Exception {
  +        this.context = context;
  +        beforeSetAttributes();
  +    }
  +    
       /** Sets an attribute value of this tag before the tag is invoked
        */
       public void setAttribute(String name, Object value) {
  @@ -108,6 +114,9 @@
           this.dynaBean = dynaBean;
       }
   
  +    /**
  +     * Callback to allow processing to occur before the attributes are about to be set
  +     */
       public void beforeSetAttributes() throws Exception {
       }
       
  
  
  

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


Mime
View raw message