A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Dynamically loading a class
Joined: Jun 16, 2007
Aug 14, 2008 14:02:00
Interesting question "How can we dynamically load a class?"
[ August 20, 2008: Message edited by: Vyas Sanzgiri ]
Author and ninkuma
Joined: Jan 10, 2002
Aug 14, 2008 14:11:00
Asking smart questions
Books by Bear
Joined: Nov 06, 2006
Aug 20, 2008 01:40:00
Class.forName(ClassName) uses to load the class dynamically.
new Class() loads the class statically.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Dynamically loading a class
Spring 2.5 : Mapping two different Class Impl for a single Interface in application-Context.xml
Cost of Class.forName()
dynamic access of interface members
creating dynamic object
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015