Package edu.gvsu.kurmasz.warszawa.dl
Classes that simplify the instantiation of dynamically loaded Java
classes. (In other words,
WarszawaDL
's purpose is to simplify the process of
instantiating an object of a class that is specified at run time instead of
at compile time.)
In particular, the SimpleFactory
class
- Combines the dynamic loading of the class, instantiation of a new object, and casting of that new object into one method.
- Watches for the myriad exceptions potentially thrown by the above steps
and re-throws a single exception:
DLException
. - Generates detailed, helpful error messages.
-
Class Summary Class Description ClassFinder Find and generate theClass
object for a class given its name.SimpleFactory Contains methods for instantiating objects of a class specified at runtime.Util Utilities for dynamic class loading. -
Exception Summary Exception Description DLException Thrown when an attempt at dynamically loading or instantiating a class fails.