net.groboclown.util.classes.v1
Class FileClass
java.lang.Object
|
+--net.groboclown.util.classes.v1.FileClass
- public class FileClass
- extends Object
Constructor Summary |
protected |
FileClass()
Default constructor - made protected so
users won't instantiate the utility |
Method Summary |
static FileClass |
getInstance()
Retrieve the shared instance of the utility class. |
Object[] |
loadClassList(Object baseobject,
String resourceName,
Class madatoryParentClass)
Loads classes from the given object's class loader, from a
resource file which has a class name on every line. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
s_instance
protected static FileClass s_instance
FileClass
protected FileClass()
- Default constructor - made protected so
users won't instantiate the utility
getInstance
public static FileClass getInstance()
- Retrieve the shared instance of the utility class.
- Returns:
- the utility instance
loadClassList
public Object[] loadClassList(Object baseobject,
String resourceName,
Class madatoryParentClass)
- Loads classes from the given object's class loader, from a
resource file which has a class name on every line. Comments
are lines that start with a '#', and blank lines and
whitespace are ignored. All the classes are instantiated with the
default constructor. All the classes must be an instance of the
given Class.
Written under the LGPL