Package com.nike.pdm.localstack.boot
Class SpringBootExtension
- java.lang.Object
-
- com.nike.pdm.localstack.boot.SpringBootExtension
-
public class SpringBootExtension extends java.lang.Object
Extension properties for the Spring Boot module.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_DEBUG_PORT
static boolean
DEFAULT_ENABLED
static java.util.List<java.lang.String>
DEFAULT_JVM_ARGS
static java.util.List<java.lang.String>
DEFAULT_PROFILES
static java.lang.String
NAME
-
Constructor Summary
Constructors Constructor Description SpringBootExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDebugPort()
Gets the debug port that will be used by the `bootRunLocalDebug` task.java.util.List<java.lang.String>
getJvmArgs()
Gets additional JVM arguments to supply to the `bootRunLocal` and `bootRunLocalDebug` tasks.java.util.List<java.lang.String>
getProfiles()
Gets the spring profiles with which to start the `bootRunLocal` and `bootRunLocalDebug` tasks.boolean
isEnabled()
Gets whether or not auto-configuration of the spring boot module is enabled.void
setDebugPort(int debugPort)
Sets the debug port that will be used by the `bootRunLocalDebug` task.void
setEnabled(boolean enabled)
Sets whether or not auto-configuration of the spring boot module is enabled.void
setJvmArgs(java.util.List<java.lang.String> jvmArgs)
Sets additional JVM arguments to supply to the `bootRunLocal` and `bootRunLocalDebug` tasks.void
setProfiles(java.util.List<java.lang.String> profiles)
Sets the spring profiles with which to start the `bootRunLocal` and `bootRunLocalDebug` tasks.
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLED
- See Also:
- Constant Field Values
-
DEFAULT_DEBUG_PORT
public static final int DEFAULT_DEBUG_PORT
- See Also:
- Constant Field Values
-
DEFAULT_PROFILES
public static final java.util.List<java.lang.String> DEFAULT_PROFILES
-
DEFAULT_JVM_ARGS
public static final java.util.List<java.lang.String> DEFAULT_JVM_ARGS
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Gets whether or not auto-configuration of the spring boot module is enabled.- Returns:
true
if auto-configuration is enabled; otherwisefalse
-
setEnabled
public void setEnabled(boolean enabled)
Sets whether or not auto-configuration of the spring boot module is enabled.- Parameters:
enabled
-true
if enabled; otherwisefalse
to disable
-
getDebugPort
public int getDebugPort()
Gets the debug port that will be used by the `bootRunLocalDebug` task.- Returns:
- debug port
-
setDebugPort
public void setDebugPort(int debugPort)
Sets the debug port that will be used by the `bootRunLocalDebug` task.- Parameters:
debugPort
- debug port
-
getProfiles
public java.util.List<java.lang.String> getProfiles()
Gets the spring profiles with which to start the `bootRunLocal` and `bootRunLocalDebug` tasks.- Returns:
- spring profiles
-
setProfiles
public void setProfiles(java.util.List<java.lang.String> profiles)
Sets the spring profiles with which to start the `bootRunLocal` and `bootRunLocalDebug` tasks.- Parameters:
profiles
- spring profiles
-
getJvmArgs
public java.util.List<java.lang.String> getJvmArgs()
Gets additional JVM arguments to supply to the `bootRunLocal` and `bootRunLocalDebug` tasks.- Returns:
- jvm arguments
-
setJvmArgs
public void setJvmArgs(java.util.List<java.lang.String> jvmArgs)
Sets additional JVM arguments to supply to the `bootRunLocal` and `bootRunLocalDebug` tasks.- Parameters:
jvmArgs
- jvm arguments
-
-