commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas.CHALUM...@arsoe-trelaze.com
Subject Réf. : [beanUtils] BeanUtils doesn't found my setters.
Date Mon, 08 Nov 2004 16:04:12 GMT
If I don't make error beanUtils want that your java bean follows the 
javaBean specification so setter and getter look like :

public String getDn();
 
public void setDn(String dn);
 
public String getAction();
 
public void setAction(String action);

But I think you can provide this getter and setter for beanUtils and have 
your other getter and setter too.

Nicolas, 





Marc DEXET <Marc.Dexet@dsi.cnrs.fr>
08/11/2004 17:01
Veuillez répondre à "Jakarta Commons Users List"

 
        Pour :  Jakarta Commons Users List <commons-user@jakarta.apache.org>
        cc : 
        Objet : [beanUtils] BeanUtils doesn't found my setters.


Hello everybody.
 
Assume a Interface like this
 
public interface MyInterface {
 
    public String getDn();
 
    public MyInterface setDn(String dn);
 
    public String getAction();
 
   public MyInterface setAction(String action);
}
 
It's a dom4j-like design to do :
    MyObject.setDn("myDn").setAction("myAction");
 
Is it this kind of design which makes BeanUtils blind about my setter ?

-- 
Marc DeXeT
BEST - DSI Meudon
01.45.07.51.56
 <mailto:xmarc.dexet@dsi.cnrs.fr> marc.dexet@dsi.cnrs.fr

 




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


Mime
View raw message