EGF Engine
Release 0.1.0

org.eclipse.egf.common.helper
Class ClassLoadingHelper

java.lang.Object
  extended by org.eclipse.egf.common.helper.ClassLoadingHelper

public class ClassLoadingHelper
extends Object

This helper provides high-level services to deal with class loading.


Constructor Summary
ClassLoadingHelper()
           
 
Method Summary
static Object instantiate(String fullyQualifiedClassName_p, ClassLoader classLoader_p)
          Instantiate given fully qualified class name using given class loader.
static Class<?> loadClass(String fullyQualifiedClassName_p, ClassLoader classLoader_p)
          Load given fully qualified class name using given class loader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLoadingHelper

public ClassLoadingHelper()
Method Detail

instantiate

public static Object instantiate(String fullyQualifiedClassName_p,
                                 ClassLoader classLoader_p)
Instantiate given fully qualified class name using given class loader.

Parameters:
fullyQualifiedClassName_p - the class name with its package name (dot separated syntax).
classLoader_p - class loader which can load given class name.
Returns:
an instance of given class name or null if instantiation failed.

loadClass

public static Class<?> loadClass(String fullyQualifiedClassName_p,
                                 ClassLoader classLoader_p)
Load given fully qualified class name using given class loader.

Parameters:
fullyQualifiedClassName_p - the class name with its package name (dot separated syntax).
classLoader_p - class loader which can load given class name.
Returns:
loaded Class according to given class name or null if loading failed.

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.