summaryrefslogtreecommitdiff
path: root/sources/utils/VSClassLoader.java
diff options
context:
space:
mode:
Diffstat (limited to 'sources/utils/VSClassLoader.java')
-rw-r--r--sources/utils/VSClassLoader.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/sources/utils/VSClassLoader.java b/sources/utils/VSClassLoader.java
deleted file mode 100644
index 37f4027..0000000
--- a/sources/utils/VSClassLoader.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package utils;
-
-/**
- * The class VSClassLoader. This class is used in order to create new objects
- * by its classnames.
- *
- * @author Paul C. Buetow
- */
-public class VSClassLoader extends ClassLoader {
- /**
- * Creates a new instance of the given classname.
- *
- * @param classname the classname
- *
- * @return the object
- */
- public Object newInstance(String classname) {
- Object object = null;
-
- try {
- object = super.loadClass(classname, true).getDeclaredConstructor().newInstance();
-
- } catch (Exception e) {
- System.out.println(e + "; Classname " + classname);
- }
-
- return object;
- }
-}