I am new to the expressions language, and I want to learn more about org.apache.commons.jxpath utilities. But I am wondering about the implementation of the JXPath utilities. Is the object first marshaled, upon which XPath searching will be applied, or does the object keep its original state i.e. without marshaling it?

Kindly provide some good reference code snippet if possible.

Thanks.

有帮助吗?

解决方案

I would perhaps check out the source code. I don't quite understand what you mean when you refer to 'marshalling'. The object won't be serialised, but I would instead expect some simple reflection to discover the object's properties.

The source for ValueUtils.java appears to have a lot of reflection code for the object's properties.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top