Is there any way to use XDoclet to generate 'proxy' classes which can then be used for various purposes ?
What do you mean by 'proxy'? We override the template for <utilobject> to create {0}Proxy classes which are facades over our session beans to hide RemoteException and wrap it, as well as do before/after interception of session bean calls, as well as have the proxy object implement a business interface (we use a custom @tag to specify which interface it should implement). This gives us mocking capabilities for unit testing as well.
�Would it be better to use XDoclet to auto-generate an interface for the current class, and then allow auto-generation of proxies via the JDK methods? (possible issue that the interface would need to be created prior to the code to invoke the proxy is written).
We have hand-written interfaces, and hand-written session beans with an @tag specifying an FQCN for an interface for the proxy to implement, which is also implemented by the session bean itself.
I don't know if this is along the lines of what you're after or not.
Erik
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
