rc.yoda.utils
Class Factory
java.lang.Object
rc.yoda.utils.Factory
public class Factory
- extends java.lang.Object
Factory is utility class designed to
dynamically instantiate all classes
from a folder that implement or extend
a reference Class object
- Version:
- v1.0
- Author:
- Robert Codd
Constructor Summary |
Factory(java.lang.Class reference,
java.lang.Object[] parameters,
java.lang.Class... classObjs)
Class constructor specficfying the castable type, class parametes, canonical path to classes and the package of the classes |
Method Summary |
java.lang.Object[] |
getClasses()
Converts the Object from loadClasses into an Object array
that is directly castable to the type reference |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Factory
public Factory(java.lang.Class reference,
java.lang.Object[] parameters,
java.lang.Class... classObjs)
- Class constructor specficfying the castable type, class parametes, canonical path to classes and the package of the classes
getClasses
public java.lang.Object[] getClasses()
- Converts the Object from loadClasses into an Object array
that is directly castable to the type reference
- Returns:
- Object an array that is directly castable to the type reference