Some remoting technologies such as Spring∞ employ dynamic proxies∞ to return an instance of the remoted object. The proxy implements as interface, but may not be itself a instance of the remoted object.
Normally XUI's POJO support attempts to invoke the getter and setter methods of the POJO, but in the case of a dynamic proxy this does not work as XUI does not know what interface is being implemented and it cannot therefore call the methods via the interface. As of XUI 4.0 the POJO support instead uses the proxy support internally to invoke the method. When a proxy is attached to the model, XUI checks to see if the POJO is an instance of the proxy interface and if so the model node will make subsequent method invocation through the proxy interface. For the most part you need not be aware of this behavior, unless you attempt to retrieve the object and access it directly.
There are no comments on this page. [Add comment]