ComponentManager.classForName

Overview | Methods | This Package | All Packages

ComponentManager.classForName

Loads the specified class.

Syntax

public static Class classForName( Class cls, String name )

Parameters

cls

A class that was loaded with the same namespace as the class you want to load.

name

The name of the class to be loaded.

Return Value

Returns a java.lang.Class object for the specified class name.

Exceptions

java.lang.ClassNotFoundException thrown if the class could not be loaded.

Remarks

This method loads the class using the class loader of cls. Use this method instead of java.lang.Class.forName to ensure that the correct class loader is used.