public class AlexaFunction
extends com.amazon.ask.SkillStreamHandler
implements java.lang.AutoCloseable, java.io.Closeable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENV_ALEXA
Environment used for setup.
|
Modifier | Constructor and Description |
---|---|
|
AlexaFunction()
Default constructor.
|
|
AlexaFunction(com.amazon.ask.AlexaSkill... skills)
Default contructor.
|
|
AlexaFunction(io.micronaut.context.ApplicationContextBuilder contextBuilder)
Used to construct a function with a custom context builder.
|
|
AlexaFunction(io.micronaut.context.ApplicationContextBuilder contextBuilder,
com.amazon.ask.AlexaSkill... skills)
Used to construct a function with a custom context builder.
|
|
AlexaFunction(com.amazon.ask.builder.SkillBuilder<?> skillBuilder)
Used to construct a function with a custom context builder.
|
|
AlexaFunction(com.amazon.ask.builder.SkillBuilder<?> skillBuilder,
io.micronaut.context.ApplicationContextBuilder contextBuilder)
Used to construct a function with a custom context builder.
|
protected |
AlexaFunction(com.amazon.ask.builder.SkillBuilder<?> skillBuilder,
io.micronaut.context.ApplicationContextBuilder contextBuilder,
com.amazon.ask.AlexaSkill... skills)
Used to construct a function with a custom context builder.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
static io.micronaut.context.ApplicationContext |
getCurrentAlexaApplicationContext()
Obtain the current Alexa application context.
|
public static final java.lang.String ENV_ALEXA
public AlexaFunction()
public AlexaFunction(io.micronaut.context.ApplicationContextBuilder contextBuilder)
contextBuilder
- The context builder.public AlexaFunction(com.amazon.ask.builder.SkillBuilder<?> skillBuilder)
skillBuilder
- The skill builder.public AlexaFunction(com.amazon.ask.AlexaSkill... skills)
skills
- The skills to includepublic AlexaFunction(io.micronaut.context.ApplicationContextBuilder contextBuilder, com.amazon.ask.AlexaSkill... skills)
contextBuilder
- The context builder.skills
- The skillspublic AlexaFunction(com.amazon.ask.builder.SkillBuilder<?> skillBuilder, io.micronaut.context.ApplicationContextBuilder contextBuilder)
skillBuilder
- The skill buildercontextBuilder
- The context builder.protected AlexaFunction(com.amazon.ask.builder.SkillBuilder<?> skillBuilder, io.micronaut.context.ApplicationContextBuilder contextBuilder, com.amazon.ask.AlexaSkill... skills)
skillBuilder
- The skill buildercontextBuilder
- The context builder.skills
- The skillspublic static io.micronaut.context.ApplicationContext getCurrentAlexaApplicationContext()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException