Package io.micronaut.build
Enum MicronautRuntime
- java.lang.Object
-
- java.lang.Enum<MicronautRuntime>
-
- io.micronaut.build.MicronautRuntime
-
- All Implemented Interfaces:
Serializable
,Comparable<MicronautRuntime>
public enum MicronautRuntime extends Enum<MicronautRuntime>
The packaging kind of the application.- Since:
- 1.1
- Author:
- graemerocher, Álvaro Sánchez-Mariscal
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AZURE_FUNCTION
Azure Cloud Function.GOOGLE_FUNCTION
Google Cloud Function, packaged as a Fat JAR.JETTY
Jetty server.LAMBDA
AWS lambda packaged as a Jar file.NETTY
Default packaging.NONE
No specific runtime specified.ORACLE_FUNCTION
Oracle Cloud Function, packaged as a docker container.TOMCAT
Tomcat server.UNDERTOW
Undertow server.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DockerBuildStrategy
getBuildStrategy()
static MicronautRuntime
valueOf(String name)
Returns the enum constant of this type with the specified name.static MicronautRuntime[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final MicronautRuntime NONE
No specific runtime specified.
-
NETTY
public static final MicronautRuntime NETTY
Default packaging.
-
TOMCAT
public static final MicronautRuntime TOMCAT
Tomcat server.
-
JETTY
public static final MicronautRuntime JETTY
Jetty server.
-
UNDERTOW
public static final MicronautRuntime UNDERTOW
Undertow server.
-
LAMBDA
public static final MicronautRuntime LAMBDA
AWS lambda packaged as a Jar file.
-
ORACLE_FUNCTION
public static final MicronautRuntime ORACLE_FUNCTION
Oracle Cloud Function, packaged as a docker container.
-
GOOGLE_FUNCTION
public static final MicronautRuntime GOOGLE_FUNCTION
Google Cloud Function, packaged as a Fat JAR.
-
AZURE_FUNCTION
public static final MicronautRuntime AZURE_FUNCTION
Azure Cloud Function.
-
-
Field Detail
-
PROPERTY
public static final String PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static MicronautRuntime[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MicronautRuntime c : MicronautRuntime.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MicronautRuntime valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getBuildStrategy
public DockerBuildStrategy getBuildStrategy()
- Returns:
- The docker build strategy
-
-