commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "KNOX, Liam, FM" <Liam.K...@rbos.com>
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,
HttpRequest
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. 

Liam.

-----Original Message-----
From: scolebourne@btopenworld.com [mailto:scolebourne@btopenworld.com]
Sent: 18 March 2003 18:29
To: commons-dev@jakarta.apache.org
Subject: Re: Typed Accessors


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

Stephen

>  from:    "KNOX, Liam, FM" <Liam.Knox@rbos.com>
>  date:    Tue, 18 Mar 2003 11:24:28
>  to:      commons-dev@jakarta.apache.org
>  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
to
> contribute this ?
> 
> Thanks
> 
> Liam
> 
> 
> ********************************************************************
>       Visit our Internet site at http://www.rbsmarkets.com
> 
> 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: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 


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

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


Mime
View raw message