tag:blogger.com,1999:blog-15250116.post2945927088186911068..comments2013-03-02T12:38:23.550+01:00Comments on Marginally Interesting: Java Integration in JRubyMikio Braunhttp://www.blogger.com/profile/12784222133031101134noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-15250116.post-61562618350670089032012-01-31T12:20:27.901+01:002012-01-31T12:20:27.901+01:00Hi Abhijeet,
not sure if I understood your questi...Hi Abhijeet,<br /><br />not sure if I understood your question correctly. In Java, you cannot explicitly destroy an object, it will be garbage collected when it is no longer accessible.<br /><br />-MMikio Braunhttps://www.blogger.com/profile/12784222133031101134noreply@blogger.comtag:blogger.com,1999:blog-15250116.post-20341743919080375072012-01-31T10:38:51.179+01:002012-01-31T10:38:51.179+01:00If we are creating a new object of some Java class...If we are creating a new object of some Java class, how to destroy it?Abhijeet Pathakhttps://www.blogger.com/profile/16140539385308206983noreply@blogger.comtag:blogger.com,1999:blog-15250116.post-48394788884287747692008-12-05T15:50:00.000+01:002008-12-05T15:50:00.000+01:00Hi, Gergely,I'm glad that you found my write-up he...Hi, Gergely,<BR/><BR/>I'm glad that you found my write-up helpful. I've started to edit the corresponding wiki page on jruby.org to merge the pieces of information. I've also started to put a list of links to articles such as mine in there such that others can helpfully find the articles faster.<BR/><BR/>-MMikio Braunhttps://www.blogger.com/profile/12784222133031101134noreply@blogger.comtag:blogger.com,1999:blog-15250116.post-21571448173426321552008-12-05T14:17:00.000+01:002008-12-05T14:17:00.000+01:00Wow, by far the best stuff I read about the subjec...Wow, by far the best stuff I read about the subject. Thanks a million for that!<BR/><BR/>It would be really nice, perhaps essential, to make these neat pieces reachable from the jruby.org (either on wiki, or a proper, managed place for jruby docs, in the links section). <BR/>Is this blog aggregated to a jrubyplanet kind-of thing? I couldn't find anything like that, maybe it's time have it?<BR/><BR/>Anyway, thanks again for the great work.<BR/><BR/>A new subscriber of yours:)Unknownhttps://www.blogger.com/profile/04891470912087384439noreply@blogger.comtag:blogger.com,1999:blog-15250116.post-57275958448084383872008-11-26T11:33:00.000+01:002008-11-26T11:33:00.000+01:00Hi Trejkaz,ah, it seems I haven't made that clear ...Hi Trejkaz,<BR/><BR/>ah, it seems I haven't made that clear enough, but the mechanism is not restricted to the Runnable interface.<BR/><BR/>I haven't fully explored the mechanism yet, but I guess that if you pass a block, JRuby sees whether there is a method expecting an interface, and if that interface has only one method, it patches things together such that your block implements that method.<BR/><BR/>I'm not sure what happens if you have more than one method in the interface, but in that case you can always implement the interface on the JRuby side by including the interface.<BR/><BR/>Concerning event listeners, there is an example on this <A HREF="http://wiki.jruby.org/wiki/Calling_Java_from_JRuby" REL="nofollow">Wiki page</A>.<BR/><BR/>-MMikio Braunhttps://www.blogger.com/profile/12784222133031101134noreply@blogger.comtag:blogger.com,1999:blog-15250116.post-48279165635316267932008-11-26T05:15:00.000+01:002008-11-26T05:15:00.000+01:00What if something accepts Callable instead of Runn...What if something accepts Callable instead of Runnable?<BR/><BR/>What if something accepts some custom listener interface which has only one method but which takes a parameter?<BR/><BR/>And above all, what about event listeners? :-)Unknownhttps://www.blogger.com/profile/15686538495254349818noreply@blogger.comtag:blogger.com,1999:blog-15250116.post-79534334594484879312008-11-25T22:44:00.000+01:002008-11-25T22:44:00.000+01:00I would integrate your work into the existing arti...I would integrate your work into the existing article. That way, there's a better chance of all of it staying recent.drhttps://www.blogger.com/profile/12025474968494424584noreply@blogger.comtag:blogger.com,1999:blog-15250116.post-91092659990069068842008-11-25T22:41:00.000+01:002008-11-25T22:41:00.000+01:00Oh yes, I should definitely fix those typos.Actual...Oh yes, I should definitely fix those typos.<BR/><BR/>Actually, I'm not sure if I should just put the article in the Wiki, as that just increases the redundancy. Maybe it's better to add to the existing article. What do you think?<BR/><BR/>-MMikio Braunhttps://www.blogger.com/profile/12784222133031101134noreply@blogger.comtag:blogger.com,1999:blog-15250116.post-3323148778805418732008-11-25T17:17:00.000+01:002008-11-25T17:17:00.000+01:00Good article!But before you put the article on the...Good article!<BR/>But before you put the article on the wiki, please fix the spelling.<BR/><BR/>Best regards,<BR/>Ajasja<BR/><BR/>Some examples:<BR/>"But you new them when you want to create You can also specify arrays with Java::long[] ..."<BR/>"JRuby does not automatically trie"ajasjahttps://www.blogger.com/profile/10042562102535275012noreply@blogger.comtag:blogger.com,1999:blog-15250116.post-27456566571962403202008-11-25T14:40:00.000+01:002008-11-25T14:40:00.000+01:00Thanks! Yes, I'll definitely consider putting it i...Thanks! Yes, I'll definitely consider putting it in the wiki. I think I'll first collect some comments and then try to integrate the additional explanations into the wiki.<BR/><BR/>-MMikio Braunhttps://www.blogger.com/profile/12784222133031101134noreply@blogger.comtag:blogger.com,1999:blog-15250116.post-39411139200048636862008-11-25T14:33:00.000+01:002008-11-25T14:33:00.000+01:00Nice post. I second the recommendation to put it o...Nice post. I second the recommendation to put it on the wiki. <A HREF="http://wiki.jruby.org/wiki/Calling_Java_from_JRuby" REL="nofollow">This page</A> has a lot of the same information, but yours is much better organized.drhttps://www.blogger.com/profile/12025474968494424584noreply@blogger.comtag:blogger.com,1999:blog-15250116.post-52910810325384522662008-11-25T14:24:00.001+01:002008-11-25T14:24:00.001+01:00You should put your wonderful work on the wiki. :)...You should put your wonderful work on the wiki. :)<BR/><BR/>Cheers and congragulations.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-15250116.post-12490169975988145762008-11-25T14:24:00.000+01:002008-11-25T14:24:00.000+01:00You should put your wonderful work on the wiki. :)...You should put your wonderful work on the wiki. :)<BR/><BR/>Cheers and congragulations.Anonymousnoreply@blogger.com