Re: Barracuda: Automatic creation of ListenerFactories?

"Diez B. Roggisch" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Just a short note on this:

> Ok, if you are using inner class event handlers, there simply is no way
> around this (that I've been able to think of...and I spent quite a bit of
> time trying too); the problem is that only the containing class has the
> authority to instantiate the inner class, so there must be a "hook" placed
> in the code to provide that instance, and that's what the above code does.

If you make inner classes static, you can instantiate inner classes. By this 
of course you lose some features like the accces to instance variables of the 
sourrounding class. But for my handlers, thats usually not neccessary (as 
this would mean that they share some sort of global variables, which I can 
easily model as static vars, too).

Diez
_______________________________________________
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.