ComponentManager.getComponentInfo

Overview | Methods | This Package | All Packages

ComponentManager.getComponentInfo

Retrieves an instance of ComponentInfo for the specified class.

Syntax

public static synchronized ComponentInfo getComponentInfo( Class componentClass )

public static synchronized ComponentInfo getComponentInfo( Class componentClass, boolean throwExceptions )

Parameters

componentClass

The class of the component to retrieve the component information for.

throwExceptions

Set to true to throw an exception if an instance of ComponentInfo could not be created. Set to false to catch the exception and return null. The default value is false.

Exceptions

WFCException thrown if the ComponentInfo object could not be created and throwExceptions is true.

Return Value

Returns an instance of the ComponentInfo class for the component.

Remarks

This method uses the component's ClassInfo class to create the ComponentInfo object. This instance of ComponentInfo can be used to retrieve all properties, events, extenders, and attributes of the component.