commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "KNOX, Liam, FM" <>
Subject RE: Typed Accessors
Date Wed, 19 Mar 2003 09:22:54 GMT
I do like this as it provides alot on top of JavaBeans.
My requirement is slightly different as it is only attempting to provide 
typed access functionality for existing java objects like Properties, Map,
which I believe should be supported within Java. 
This stuff provides additional functionality for user defined interfaces.  I
would like to check out the full API but the link was dead. 


-----Original Message-----
From: []
Sent: 18 March 2003 18:29
Subject: Re: Typed Accessors

Its not dissimilar to some stuff I have done at You
might want to take a look at that.


>  from:    "KNOX, Liam, FM" <>
>  date:    Tue, 18 Mar 2003 11:24:28
>  to:
>  subject: Re: Typed Accessors
> Hello 
> I was wondering if there was any code in commons (probably lang) providing
> typed accessor support.
> As you probably know with Java you have System.getProperty() which returns
> strings only, Map
> interface which returns Object, and code can become messy casting, using
> .intValue() etc.
> Within some of the projects I have worked on I have implemented a typed
> accessor interface to reduce
> this overhead i.e.
>   public interface  PropertyAccessor {
> 	public int getIntValue(String name);
> 	public int getIntValue(String name,int default);
> 	// etc
>   } 
> It is also easy to see how you can write implementations of this for Maps,
> HttpServletRequest etc. I was wondering
> if there is anything like this in commons, or if not would anyone like me
> contribute this ?
> Thanks
> Liam
> ********************************************************************
>       Visit our Internet site at
> This e-mail is intended only for the addressee named above.
> As this e-mail may contain confidential or privileged information,
> if you are not the named addressee, you are not authorised to
> retain, read, copy or disseminate this message or any part of it.
> The Royal Bank of Scotland plc is registered in Scotland No 90312
> Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB
>              Regulated by the Financial Services Authority
> ********************************************************************
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message