|
Re: [jruby-user] JRuby class arguments: msg#00163lang.jruby.user
> > def JRubyPropertyHandler.register() > > introspector = org.apache.commons.jxpath.JXPathIntrospector > > introspector.registerDynamicClass(???, ???) > > end > > end > > > > Perhaps this snippet helps? > > $ bin/jruby -S irb > irb(main):001:0> class Foo > irb(main):002:1> include java.lang.Runnable > irb(main):003:1> end > => Foo > irb(main):004:0> Foo.new.java_class > => $Proxy7 Thanks. Maybe. I'll look into it when I can get back to my jirb prompt. That will work for the second argument *if* it implies that when the jxpath java code creates a new instance of $Proxy7 then what actually happens is a new jruby instance of Foo is created. But what does this say about all jruby objects? i.e. in jruby, they are all instances of the class Object, but if I do the following... o = Object.new j = o.java_class ...then can I assume that all jruby objects are (in java-land) instances of a java class that inherits from "j"? Or is the java_class $ProxyN class more of an on-demand, dynamically generated, bridge to the other world? --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [jruby-user] JRuby class arguments: 00163, Nick Sieger |
|---|---|
| Next by Date: | Re: [jruby-user] Multiple applications on tomcat problem: 00163, Charles Oliver Nutter |
| Previous by Thread: | Re: [jruby-user] JRuby class argumentsi: 00163, Nick Sieger |
| Next by Thread: | Re: [jruby-user] JRuby class arguments: 00163, Nick Sieger |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |