abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Moseley" <...@osafoundation.org>
Subject Re: The Converter Code
Date Fri, 14 Sep 2007 15:47:40 GMT
On 9/14/07, James M Snell <jasnell@gmail.com> wrote:

> 1    Abdera abdera = new Abdera();
> 2    ConversionContext context =
> 3       new ConventionConversionContext(abdera);
> 4    Foo foo = new Foo();
> 5    Entry entry = context.convert(entry);

i like how this looks. nice and simple, especially with the naming
conventions. i assume ConversionContext can also convert an Entry to a
Foo? can it accept an existing instance of Foo to convert the Entry
to?

Mime
View raw message