Package org.openrewrite.java.logging
Enum LoggingFramework
- java.lang.Object
-
- java.lang.Enum<LoggingFramework>
-
- org.openrewrite.java.logging.LoggingFramework
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<LoggingFramework>
public enum LoggingFramework extends java.lang.Enum<LoggingFramework>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoggingFrameworkfromOption(@Nullable java.lang.String option)<P> org.openrewrite.java.JavaTemplategetErrorTemplate(org.openrewrite.java.JavaVisitor<P> visitor, java.lang.String message)java.lang.StringgetFactoryType()java.lang.StringgetLoggerType()static LoggingFrameworkvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static LoggingFramework[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SLF4J
public static final LoggingFramework SLF4J
-
Log4J1
public static final LoggingFramework Log4J1
-
Log4J2
public static final LoggingFramework Log4J2
-
JUL
public static final LoggingFramework JUL
-
-
Method Detail
-
values
public static LoggingFramework[] 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 (LoggingFramework c : LoggingFramework.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LoggingFramework 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
-
getLoggerType
public java.lang.String getLoggerType()
-
getFactoryType
public java.lang.String getFactoryType()
-
fromOption
public static LoggingFramework fromOption(@Nullable @Nullable java.lang.String option)
-
getErrorTemplate
public <P> org.openrewrite.java.JavaTemplate getErrorTemplate(org.openrewrite.java.JavaVisitor<P> visitor, java.lang.String message)
-
-