public class DynamicLoader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.HashSet<java.lang.String> |
loadedClasses
Set used to keep track of which classes were already loaded
|
Constructor and Description |
---|
DynamicLoader() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
loadPenaltyOrLogger(java.lang.String className,
boolean isPenalty,
java.lang.String[] toBeParsed)
Static method responsible for loading and instantiating a new instance of a penalty (or logger).
|
public java.util.HashSet<java.lang.String> loadedClasses
public java.lang.Object loadPenaltyOrLogger(java.lang.String className, boolean isPenalty, java.lang.String[] toBeParsed)
className
- the class to be loadedisPenalty
- a penalty or a loggertoBeParsed
- strings of arguments for the constructor