|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.eclipseUtil.GlobalClassCreator
public final class GlobalClassCreator
Eclipse workaround to create new Classes through one, global gateway. We can now plugin an Eclipse hack that knows about all plugins and can create classes using the appropriate class loader. If no creator is specified the usual Java class loader will be used.
Method Summary | |
---|---|
static void |
addClassReplacementPair(String oldClassName,
String replacedClassName)
Adds a replacement string for obsolete class names. |
static Class<?> |
createClass(String className)
return Class specified name - using either normal classloader or special one if it was given before. |
static void |
setClassCreator(ClassCreator cc)
overwrite ClassCreator to be used by everybody. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setClassCreator(ClassCreator cc)
cc
- new ClassCreator.public static void addClassReplacementPair(String oldClassName, String replacedClassName)
This method is not intended for public use; if you want to replace an obsolete class by a KNIME core class, contact the KNIME team.
oldClassName
- The old, to be replaced classreplacedClassName
- The new class replacing oldClassName
NullPointerException
- If either argument is null
IllegalStateException
- If there is already an entry for the
old class name.public static Class<?> createClass(String className) throws ClassNotFoundException
className
- qualified class name
Class
of specified name
ClassNotFoundException
- Class not found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |