Package io.micronaut.gradle
Enum Class MicronautRuntime
- All Implemented Interfaces:
Serializable
,Comparable<MicronautRuntime>
,Constable
The packaging kind of the application.
- Since:
- 1.0
- Author:
- graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAzure Cloud Function.Google Cloud Function, packaged as a Fat JAR.Plain old Java application based on Apache libraries.Jetty server.AWS lambda packaged as a Jar file and deploy to a Java runtime.AWS lambda deployed to a Provided runtime.Default packaging.No specific runtime specified.Oracle Cloud Function, packaged as a docker container.Tomcat server.Undertow server. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isLambda()
boolean
static MicronautRuntime
Returns the enum constant of this class with the specified name.static MicronautRuntime[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No specific runtime specified. -
NETTY
Default packaging. -
TOMCAT
Tomcat server. -
JETTY
Jetty server. -
UNDERTOW
Undertow server. -
LAMBDA_JAVA
AWS lambda packaged as a Jar file and deploy to a Java runtime. -
LAMBDA_PROVIDED
AWS lambda deployed to a Provided runtime. -
ORACLE_FUNCTION
Oracle Cloud Function, packaged as a docker container. -
GOOGLE_FUNCTION
Google Cloud Function, packaged as a Fat JAR. -
AZURE_FUNCTION
Azure Cloud Function. -
HTTP_POJA
Plain old Java application based on Apache libraries.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getBuildStrategy
- Returns:
- The docker build strategy
-
isLambda
public boolean isLambda() -
isLambdaProvided
public boolean isLambdaProvided()
-