This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, I am cought in a problem . Here is a scenario ---
We have an interface . User needs to provide implementation of methods in interface in an abstract class . Complete implementation will be provided dynamically at runtime and methods will be called on that implementation .
I am trying to achieve this but am not getting it . I tried this .But class implementation class FooImpl is not abstract . I want to create some thing like FooImpl at runtime .
Please provide me a sample code or some website links to help me achieve this.
basically, you will have to compile a java class you compose, and load the resulting class with a class loader,
Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);