Dynamic Loading Using Java Reflection and Properties.
If you were wondering how to dynamically load a class based on some configuration or settings file, then you might be able to solve your problem using Java Reflection and Properties. The Properties file are basically a collection of key-value pairs. It is one of the most commonly used mechanism for storing applications configuration data and settings. Reflection is a feature available in Java used by developers for examining and modifying the run-time behavior of applications running in the JVM. Visit http://www.janeve.me/articles/dynamic-loading-using-java-reflection-and-properties for more details.