Class DefaultAlexaSkillBuilder

java.lang.Object
io.micronaut.aws.alexa.builders.DefaultAlexaSkillBuilder
All Implemented Interfaces:
AlexaSkillBuilder<com.amazon.ask.model.RequestEnvelope,com.amazon.ask.model.ResponseEnvelope>

@Singleton public class DefaultAlexaSkillBuilder extends Object implements AlexaSkillBuilder<com.amazon.ask.model.RequestEnvelope,com.amazon.ask.model.ResponseEnvelope>
Creates AlexaSkill by adding request and exception handlers ((RequestHandler, ExceptionHandler beans) and interceptor beans (RequestInterceptor and ResponseInterceptor).
Since:
2.0.0
Author:
sdelamo
  • Constructor Details

    • DefaultAlexaSkillBuilder

      public DefaultAlexaSkillBuilder(Collection<AlexaSkillConfiguration> alexaSkillConfigurations, io.micronaut.context.ApplicationContext applicationContext)
      Parameters:
      alexaSkillConfigurations - Alexa Skill Configurations
      applicationContext - ApplicationContext
  • Method Details

    • buildSkill

      @NonNull public @NonNull com.amazon.ask.AlexaSkill<com.amazon.ask.model.RequestEnvelope,com.amazon.ask.model.ResponseEnvelope> buildSkill(@NonNull @NotNull @NonNull @NotNull com.amazon.ask.builder.SkillBuilder<?> skillBuilder, @Nullable @Nullable AlexaSkillConfiguration alexaSkillConfiguration)
      Specified by:
      buildSkill in interface AlexaSkillBuilder<com.amazon.ask.model.RequestEnvelope,com.amazon.ask.model.ResponseEnvelope>
      Parameters:
      skillBuilder - A Skill builder
      alexaSkillConfiguration - Alexa Skill Configuration
      Returns:
      An Alexa skill.