EGF Engine
Release 0.1.0

org.eclipse.egf.common.helper
Class BundleHelper

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

public class BundleHelper
extends Object

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


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

Constructor Detail

BundleHelper

public BundleHelper()
Method Detail

instantiate

public static Object instantiate(String fullyQualifiedClassName_p,
                                 Bundle bundle_p)
Instantiate given fully qualified class name using given bundle.

Parameters:
fullyQualifiedClassName_p - the class name with its package name (dot separated syntax).
bundle_p - 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,
                                 Bundle bundle_p)
Load given fully qualified class name using given bundle.

Parameters:
fullyQualifiedClassName_p - the class name with its package name (dot separated syntax).
bundle_p - bundle 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.