This class provides methods to load FlowPDF Components. It supports 2 loading strategies.
-
Local
Local component gets loaded to current ComponentManager object context. In this case, it is only possible to access it from current object.
-
Global
In this strategy component gets loaded for whole execution context and can be accessed using the static instance ComponentManager object. This is the default.
ComponentManager(FlowPlugin plugin)
loadComponentLocal(Class componentClass, Map<String, Object> componentInitValues, FlowPlugin plugin)
Loads, initializes the component and saves a Component object in context of current ComponentManager object.
Parameters
-
(Required)(Class<Component>) Class of the component to be loaded.
-
(Required)(Map<String, Object>) Configuration values for the component. Will be passed to the init() method of the Component.
-
(Optional)(FlowPlugin) Instance of the plugin. Exception will be thrown when Component expects instance but it is not defined.
loadComponent(Class<Component> componentClass, Map<String, Object> componentInitValues, FlowPlugin plugin)
Loads, initializes the component and returns a Component object in global context.
Parameters
-
(Required)(Class<Component>) Class of the component to be loaded.
-
(Required)(Map<String, Object>) Configuration values for the component. Will be passed to the init() method of the Component.
-
(Optional)(FlowPlugin) Instance of the plugin. Exception will be thrown when Component expects instance but it is not defined.