Package io.micronaut.aws.alexa.builders
Class StandardSkillFactory
java.lang.Object
io.micronaut.aws.alexa.builders.StandardSkillFactory
@Requires(beans=SkillBuilderProvider.class) @Requires(beans=AlexaSkillBuilder.class)
@Factory
public class StandardSkillFactory
extends Object
Creates an
AlexaSkill
if no other alexa skills beans are present.- Since:
- 2.0.0
- Author:
- sdelamo
-
Constructor Summary
ConstructorDescriptionStandardSkillFactory
(AlexaSkillBuilder alexaSkillBuilder, SkillBuilderProvider skillBuilderProvider) -
Method Summary
Modifier and TypeMethodDescriptioncom.amazon.ask.Skill
createSkill
(AlexaSkillConfiguration alexaSkillConfiguration) com.amazon.ask.AlexaSkill
createStandardAlexaSkill
(AlexaSkillConfiguration alexaSkillConfiguration)
-
Constructor Details
-
StandardSkillFactory
public StandardSkillFactory(AlexaSkillBuilder alexaSkillBuilder, SkillBuilderProvider skillBuilderProvider) - Parameters:
alexaSkillBuilder
- Alexa Skill BuilderskillBuilderProvider
- Skill Builder Provider
-
-
Method Details
-
createStandardAlexaSkill
@EachBean(AlexaSkillConfiguration.class) public com.amazon.ask.AlexaSkill createStandardAlexaSkill(@Parameter AlexaSkillConfiguration alexaSkillConfiguration) - Parameters:
alexaSkillConfiguration
- Alexa Skill Configuration- Returns:
- An Alexa Skill using the
AlexaSkillBuilder
and theSkillBuilderProvider
bean.
-
createSkill
@EachBean(AlexaSkillConfiguration.class) public com.amazon.ask.Skill createSkill(@Parameter AlexaSkillConfiguration alexaSkillConfiguration) - Parameters:
alexaSkillConfiguration
- Alexa Skill Configuration- Returns:
- An Alexa Skill using the
AlexaSkillBuilder
and theSkillBuilderProvider
bean.
-