Re[4]: Barracuda: Patch for IterativeListModel

Jacob Kjome <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Organization Springfield Nuclear Plant
Message-ID <[email protected]>
Hello Diez,

See comments below...

Monday, December 09, 2002, 2:37:34 PM, you wrote:

>> Ok, that's fine with me, except that the Diez' IterativeListModel isn't
>> abstract.  Right now it is defined as:
>>
>> "public class IterativeListModel extends AbstractTemplateModel implements
>> IterativeModel"
>>
>> and the examples for usage show it being instantiated directly...
>>
>> IterativeListModel ilm = new IterativeListModel() {
>>      public Object getItem(Strink key) {
>>        if(key.equals("MYKEY"))= {
>>          return _current;
>>        }
>>      }}
>>
>> If we made it abstract, you couldn't do as the examples suggest.  So, I
>> guess that needs to be figured out as well.

DBR> Thats not true - the above construct will create an anonymous class, which can 
DBR> implement interfaces, thus abstract methods are no problem.

Maybe I'm just showing my naivete, but if a class is made abstract,
you can't instantiate it by calling "new" on it.  I would think that
by calling it AbstractIterativeListModel we'd then change the class
to "public abstract class", right?  Please explain what you mean.

DBR> Regarding the postIterate method: I ususally null not needed iterators and 
DBR> stuff, this one must have slipped me.

Cool.  Are you going to make those modifications?  Sometime after the move to
the new server we'll be making a new release and it would probably be
good to get this stuff moved into the core before that.  Otherwise, it
will have to wait for a later release.

DBR> Diez

Jake

DBR> _______________________________________________
DBR> Barracuda mailing list
DBR> [email protected]
DBR> http://www.enhydra.org/mailman/listinfo.cgi/barracuda
DBR> FAQ - http://www.jguru.com/faq/Barracuda



-- 
Best regards,
 Jacob                            mailto:[email protected]

_______________________________________________
Barracuda mailing list
[email protected]
http://www.enhydra.org/mailman/listinfo.cgi/barracuda
FAQ - http://www.jguru.com/faq/Barracuda
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.