Dynamic Class Loading & Design Patterns
I need to know how can I use prototype or other design patterns to dynamically
load classes in Java. Any useful resources, or other help would be appreciated.
Re: Dynamic Class Loading & Design Patterns
"Zeb Fropiaz " <firstname.lastname@example.org> wrote:
>I need to know how can I use prototype or other design patterns to dynamically
>load classes in Java. Any useful resources, or other help would be appreciated.
I'm not sure I understand whether your source of confusion comes from design
patterns or dynamically loading classes. If it is the second one, then use
the java reflection api (java.reflect.*). Briefly, you can use Class dynamicLoaded=Class.forName("ClassName"),
and check the api javadocs for java.reflect.Method and java.reflect.Constructor,
etc. Tell me if I answered the wrong question. -JK
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center