org.knime.core.eclipseUtil
Class GlobalClassCreator

java.lang.Object
  extended by org.knime.core.eclipseUtil.GlobalClassCreator

Deprecated. Since 2.4 the KNIME core is using the Eclipse Buddy-Classloading mechanism. So the workaround via the GlobalClassCreator is not necessary any more.

@Deprecated
public final class GlobalClassCreator
extends Object

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.

Author:
Michael Berthold, University of Konstanz

Field Summary
static ReentrantLock lock
          Deprecated.  
 
Method Summary
static void addClassReplacementPair(String oldClassName, String replacedClassName)
          Deprecated. Adds a replacement string for obsolete class names.
static Class<?> createClass(String className)
          Deprecated. return Class specified name - using either normal classloader or special one if it was given before.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lock

public static final ReentrantLock lock
Deprecated. 
Method Detail

addClassReplacementPair

public static void addClassReplacementPair(String oldClassName,
                                           String replacedClassName)
Deprecated. 
Adds a replacement string for obsolete class names. This is used primarily by data cell class implementations, which were moved from specific vendor plugins to KNIME core (mostly in a org.knime.chem.types). The replaced class is supposed to use the same internals (e.g. a similar persistor) as the replacing class.

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.

Parameters:
oldClassName - The old, to be replaced class
replacedClassName - The new class replacing oldClassName
Throws:
NullPointerException - If either argument is null
IllegalStateException - If there is already an entry for the old class name.

createClass

public static Class<?> createClass(String className)
                            throws ClassNotFoundException
Deprecated. 
return Class specified name - using either normal classloader or special one if it was given before.

Parameters:
className - qualified class name
Returns:
Class of specified name
Throws:
ClassNotFoundException - Class not found.


Copyright, 2003 - 2012. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.