Interface IComponentFactory
interface IComponentFactory
Extends com.amazon.apmf.IStandard
Factory interface for creating component instances.
When a user requests for a certain component to be launched, Lifecycle Manager (LCM) retrieves
its package’s component factory and uses it to create an instance of the component.
Methods
makeInteractiveComponent()
Method to create a new instance of an interactive component.IInteractiveComponent*makeInteractiveComponent(stringcomponentName)
Parameters
componentName
string — Required
The string name of the interactive component that the user has
requested be launched.
Returns
IInteractiveComponent*
a pointer to the InteractiveComponent object associated with the provided component
name.
makeServiceComponent()
Method to create a new instance of a service component.IServiceComponent*makeServiceComponent(stringcomponentName)
Parameters
componentName
string — Required
The string name of the service component that the user has requested
be launched.
Returns
IServiceComponent*
a pointer to the ServiceComponent object associated with the provided component
name.
makeTaskComponent()
Method to create a new instance of a task component.ITaskComponent*makeTaskComponent(stringcomponentName)
Parameters
componentName
string — Required
The string name of the task component that the user has requested
be launched.
Returns
ITaskComponent*
a pointer to the TaskComponent object associated with the provided component name.

