Charles Oliver Nutter wrote:
mnwicket wrote:
So I'm a little confused....does jruby support anonymous inner classes?

I'm interested in getting wicket working with jruby on rails.

What does wicket need with anonymous inner classes?

I suppose the answer is "yes", since you can create a class impl at any time.

- Charlie

The concept of anonymous inner classes in the Java sense doesn't make sense from the Ruby side - not really. Since "anonymous inner classes" will just compile down to regular classes with somewhat funky names and some extra machinery for handling this-references, they don't really exist in the Java platform. They are only a syntactic construct. As such, you can use several different versions in JRuby to mimic that. In many cases, if it's an implementation of an interface you want, you generally should just use the block coercion

button.add_action_handler do |event|
end


Cheers

--
Ola Bini (http://ola-bini.blogspot.com) JRuby Core Developer
Developer, ThoughtWorks Studios (http://studios.thoughtworks.com)
Practical JRuby on Rails (http://apress.com/book/view/9781590598818)

"Yields falsehood when quined" yields falsehood when quined.



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to