Dmitri, I have a NodePointerFactory impl that uses the JXPathIntrospector to create a JXPathBeanInfo object for an Interface. I take it this is incorrect usage??
Looking at the code JXPathBasicBeanInfo.getPropertyDEscriptors() tests for an Interface but the BeanInfo object returned by java.beans.Introspector.getBeanInfo() doesn't recognizes methods from super interfaces even without a 'stop' class. I guess I could implement my own JXPathBeanInfo class that uses reflection instead of JavaBeans to create PropertyDescriptors ? cheers, steve. > -----Original Message----- > From: Dmitri Plotnikov [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 13 June 2002 10:42 PM > To: Jakarta Commons Developers List > Subject: Re: [JXPATH] Difference in introspection > > > Stephen, > > > Any reason why Interfaces are introspected differently Objects ? > > > > When an Interface is introspected "PropertyDescriptors" are > created only > for > > methods defined on the Interface and not for inherited > methods. This is > not > > the case when an Object is introspected. > > > > Is this expected? I feel it is inconsistent and prevents me > from extending > > Interfaces. > JXPath is not supposed to introspect interfaces - just > JavaBeans. How did > you get it to introspect an interface? > > Thanks, > > > > > Steve. > > - Dmitri > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
