summaryrefslogtreecommitdiff
path: root/sources/utils/VSClassLoader.java
blob: 3e1611baef87512f8eeb38805c71cf023617b274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package utils;

import java.util.*;
import java.lang.reflect.*;

import prefs.*;
import core.*;

public class VSClassLoader extends ClassLoader {
    public Object newInstance(String classname) {
        Object object = null;

        try {
            object = super.loadClass(classname, true).newInstance();

        } catch (Exception e) {
            System.out.println(e + "; Classname " + classname);
        }

        return object;
    }
}