Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

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()

IInteractiveComponent* makeInteractiveComponent(string componentName)
Method to create a new instance of an interactive component.

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()

IServiceComponent* makeServiceComponent(string componentName)
Method to create a new instance of a service component.

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()

ITaskComponent* makeTaskComponent(string componentName)
Method to create a new instance of a task component.

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.
Last modified on October 29, 2026