[jboss-user] [J2EE Design Patterns] - Re: quite a design problem..!!!

isterin do-not-reply at jboss.com
Sun Jul 30 15:09:10 EDT 2006


I'm a bit lost as to your response.

Do you want to figure out the class name at runtime and dynamically pass it?  You can use reflection facilities.  Not sure what you mean by redundant code, use standard OO techniques and patterns to reduce redundancy in code.  Or create some util libraries that do that.

Or do you mean that you want your classes to not have any create methods and be able to create them at runtime?  You can use runtime bytecode injection/enhancement techniquest to do that.  Take a look at the cglib libraries, and there are many more.

Ilya

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961733#3961733

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961733



More information about the jboss-user mailing list