DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37301>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37301

           Summary: Allow dynamic interface implementation by ActionForms
                    using CGLib
           Product: Struts
           Version: 1.3.0
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: Controller
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


A goal in web application development is decoupling of business logic from web
dependencies to enhance testability. By making an ActionForm that implements a
business interface, the ActionForm itself can be passed to the business layer by
the interface type without creating an unnecessary dependency. This is fine if
you're writing a custom ActionForm for all of your form beans, but there's no
way currently to make any of the dynamic ActionForms implement an interface.
I've written a custom org.apache.struts.config.FormBeanConfig that uses CGLib to
allow it. It would be fairly simple to integrate into the FormBeanConfig and
Struts itself unless there's something I'm missing.

I'll attach the FormBeanConfig subclass and the interceptor class that I've
written. I haven't looked at how I would actually modify the Struts code, and I
don't currently know how to make a patch file anyway.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to