Tuesday, May 16, 2006

bytecode generation

"bytecode generation" to follow tip # 11 DRY - don't repeat yourself

the project needs to have a set of custom classes extending the Struts EL Tags to integrate the in-house authentication framework's policy in HMTL components level. the implementaion will only need one authentication handling in doStartTag method and the same set of attributes with the corresponding setter-getter methods across classes. entending from a parent custom class is not possible; modifying the Struts Tag base class implementation is not pragmatic; and creating AOP crosscutting using the Spring Framework (already integrated in the project) will not work since only the application server has the control over the instances of the tags. thus, i choose class generation at runtime.

No comments: