ComponentManager is responsible for proper instantiation of the Component. It can also store previously instantiated components.
Constructor and description |
---|
ComponentManager
(FlowPlugin plugin) Constructor |
Type Params | Return Type | Name and description |
---|---|---|
|
static Component |
getComponent(java.lang.Class<Component> componentClass) Get a loaded component from a static cache |
|
Component |
getComponentLocal(java.lang.Class<Component> componentName) Get a loaded component from an instance cache |
|
static Component |
loadComponent(java.lang.Class<Component> componentClass, java.util.Map<java.lang.String, java.lang.Object> componentInitValues = [:], FlowPlugin pluginInstance = null) Instantiates the specified component with given values ans saves it to the ComponentManager static cache |
|
Component |
loadComponentLocal(java.lang.Class<Component> componentClass, java.util.Map<java.lang.String, java.lang.Object> componentInitValues, FlowPlugin pluginInstance = flowPlugin) Instantiates the specified component with given values ans saves it to this ComponentManager instance's cache |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor
plugin
- will be used to initialize built-in componentsGet a loaded component from a static cache
componentClass
- name (full classpath for an external one) of the component that was already loaded previouslyGet a loaded component from an instance cache
componentName
- name (full classpath for an external one) of the component that was already loaded previouslyInstantiates the specified component with given values ans saves it to the ComponentManager static cache
componentClass
- name of the component to load. Use simple name for built-in components and full classpath for the external onescomponentInitValues
- map that contains configuration for a componentInstantiates the specified component with given values ans saves it to this ComponentManager instance's cache
componentClass
- name of the component to load. Use simple name for built-in components and full classpath for the external onescomponentInitValues
- map that contains configuration for a component