Enum SpringApplicationProfileEnum
- java.lang.Object
-
- java.lang.Enum<SpringApplicationProfileEnum>
-
- ch.tbmelabs.serverconstants.spring.SpringApplicationProfileEnum
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SpringApplicationProfileEnum>
public enum SpringApplicationProfileEnum extends java.lang.Enum<SpringApplicationProfileEnum>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()static SpringApplicationProfileEnumvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SpringApplicationProfileEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROD
public static final SpringApplicationProfileEnum PROD
Productive systems.
-
DEV
public static final SpringApplicationProfileEnum DEV
Development profile with debug logs.
-
TEST
public static final SpringApplicationProfileEnum TEST
Used while (maven) testing is active.
-
NO_REDIS
public static final SpringApplicationProfileEnum NO_REDIS
Disables caching via REDIS-Server.
-
NO_MAIL
public static final SpringApplicationProfileEnum NO_MAIL
Disables Spring Mail configuration. For development use only.
-
-
Method Detail
-
values
public static SpringApplicationProfileEnum[] 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 (SpringApplicationProfileEnum c : SpringApplicationProfileEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SpringApplicationProfileEnum valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getName
public java.lang.String getName()
-
-