public abstract class org.jboss.resteasy.logging.Logger
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.jboss.resteasy.logging.Logger
super_class: java.lang.Object
{
private static java.lang.reflect.Constructor loggerConstructor;
descriptor: Ljava/lang/reflect/Constructor;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: aconst_null
putstatic org.jboss.resteasy.logging.Logger.loggerConstructor:Ljava/lang/reflect/Constructor;
1: getstatic org.jboss.resteasy.logging.Logger$LoggerType.JUL:Lorg/jboss/resteasy/logging/Logger$LoggerType;
astore 0
start local 0 2: ldc "org.apache.log4j.Logger"
invokestatic org.jboss.resteasy.logging.Logger.classInClasspath:(Ljava/lang/String;)Z
ifeq 5
3: getstatic org.jboss.resteasy.logging.Logger$LoggerType.LOG4J:Lorg/jboss/resteasy/logging/Logger$LoggerType;
astore 0
4: goto 7
5: StackMap locals: org.jboss.resteasy.logging.Logger$LoggerType
StackMap stack:
ldc "org.slf4j.Logger"
invokestatic org.jboss.resteasy.logging.Logger.classInClasspath:(Ljava/lang/String;)Z
ifeq 7
6: getstatic org.jboss.resteasy.logging.Logger$LoggerType.SLF4J:Lorg/jboss/resteasy/logging/Logger$LoggerType;
astore 0
7: StackMap locals:
StackMap stack:
aload 0
invokestatic org.jboss.resteasy.logging.Logger.setLoggerType:(Lorg/jboss/resteasy/logging/Logger$LoggerType;)V
end local 0 8: return
LocalVariableTable:
Start End Slot Name Signature
2 8 0 type Lorg/jboss/resteasy/logging/Logger$LoggerType;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/logging/Logger;
public static void setLoggerType(org.jboss.resteasy.logging.Logger$LoggerType);
descriptor: (Lorg/jboss/resteasy/logging/Logger$LoggerType;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
getstatic org.jboss.resteasy.logging.Logger$LoggerType.JUL:Lorg/jboss/resteasy/logging/Logger$LoggerType;
if_acmpne 4
2: ldc Lorg/jboss/resteasy/logging/Logger;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
ldc "org.jboss.resteasy.logging.impl.JULLogger"
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 1
3: goto 9
4: StackMap locals: java.lang.Class
StackMap stack:
aload 0
getstatic org.jboss.resteasy.logging.Logger$LoggerType.LOG4J:Lorg/jboss/resteasy/logging/Logger$LoggerType;
if_acmpne 7
5: ldc Lorg/jboss/resteasy/logging/Logger;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
ldc "org.jboss.resteasy.logging.impl.Log4jLogger"
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 1
6: goto 9
7: StackMap locals:
StackMap stack:
aload 0
getstatic org.jboss.resteasy.logging.Logger$LoggerType.SLF4J:Lorg/jboss/resteasy/logging/Logger$LoggerType;
if_acmpne 9
8: ldc Lorg/jboss/resteasy/logging/Logger;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
ldc "org.jboss.resteasy.logging.impl.Slf4jLogger"
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 1
9: StackMap locals:
StackMap stack:
aload 1
ifnonnull 11
10: new java.lang.RuntimeException
dup
getstatic org.jboss.resteasy.resteasy_jaxrs.i18n.Messages.MESSAGES:Lorg/jboss/resteasy/resteasy_jaxrs/i18n/Messages;
aload 0
invokeinterface org.jboss.resteasy.resteasy_jaxrs.i18n.Messages.couldNotMatchUpLoggerTypeImplementation:(Lorg/jboss/resteasy/logging/Logger$LoggerType;)Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
aload 1
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/String;
aastore
invokevirtual java.lang.Class.getDeclaredConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
putstatic org.jboss.resteasy.logging.Logger.loggerConstructor:Ljava/lang/reflect/Constructor;
end local 1 12: goto 17
13: StackMap locals: org.jboss.resteasy.logging.Logger$LoggerType
StackMap stack: java.lang.ClassNotFoundException
astore 1
start local 1 14: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 15: StackMap locals:
StackMap stack: java.lang.NoSuchMethodException
astore 1
start local 1 16: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 17: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 loggerType Lorg/jboss/resteasy/logging/Logger$LoggerType;
1 12 1 loggerClass Ljava/lang/Class;
14 15 1 e Ljava/lang/ClassNotFoundException;
16 17 1 e Ljava/lang/NoSuchMethodException;
Exception table:
from to target type
0 12 13 Class java.lang.ClassNotFoundException
0 12 15 Class java.lang.NoSuchMethodException
MethodParameters:
Name Flags
loggerType
private static boolean classInClasspath(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
aload 0
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
2: ireturn
3: StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
pop
4: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 className Ljava/lang/String;
Exception table:
from to target type
0 2 3 Class java.lang.ClassNotFoundException
MethodParameters:
Name Flags
className
public static org.jboss.resteasy.logging.Logger getLogger(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Lorg/jboss/resteasy/logging/Logger;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: getstatic org.jboss.resteasy.logging.Logger.loggerConstructor:Ljava/lang/reflect/Constructor;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aastore
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jboss.resteasy.logging.Logger
1: areturn
2: StackMap locals:
StackMap stack: java.lang.InstantiationException
astore 1
start local 1 3: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 4: StackMap locals:
StackMap stack: java.lang.IllegalAccessException
astore 1
start local 1 5: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 6: StackMap locals:
StackMap stack: java.lang.reflect.InvocationTargetException
astore 1
start local 1 7: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 clazz Ljava/lang/Class<*>;
3 4 1 e Ljava/lang/InstantiationException;
5 6 1 e Ljava/lang/IllegalAccessException;
7 8 1 e Ljava/lang/reflect/InvocationTargetException;
Exception table:
from to target type
0 1 2 Class java.lang.InstantiationException
0 1 4 Class java.lang.IllegalAccessException
0 1 6 Class java.lang.reflect.InvocationTargetException
Signature: (Ljava/lang/Class<*>;)Lorg/jboss/resteasy/logging/Logger;
MethodParameters:
Name Flags
clazz
public abstract boolean isTraceEnabled();
descriptor: ()Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract void trace(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
message
public abstract void trace(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0481) ACC_PUBLIC, ACC_VARARGS, ACC_ABSTRACT
MethodParameters:
Name Flags
message
params
public abstract void trace(java.lang.String, java.lang.Throwable);
descriptor: (Ljava/lang/String;Ljava/lang/Throwable;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
message
error
public abstract boolean isDebugEnabled();
descriptor: ()Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract void debug(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
message
public abstract void debug(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0481) ACC_PUBLIC, ACC_VARARGS, ACC_ABSTRACT
MethodParameters:
Name Flags
message
params
public abstract void debug(java.lang.String, java.lang.Throwable);
descriptor: (Ljava/lang/String;Ljava/lang/Throwable;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
message
error
public abstract void info(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
message
public abstract void info(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0481) ACC_PUBLIC, ACC_VARARGS, ACC_ABSTRACT
MethodParameters:
Name Flags
message
params
public abstract void info(java.lang.String, java.lang.Throwable);
descriptor: (Ljava/lang/String;Ljava/lang/Throwable;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
message
error
public abstract boolean isWarnEnabled();
descriptor: ()Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract void warn(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
message
public abstract void warn(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0481) ACC_PUBLIC, ACC_VARARGS, ACC_ABSTRACT
MethodParameters:
Name Flags
message
params
public abstract void warn(java.lang.String, java.lang.Throwable);
descriptor: (Ljava/lang/String;Ljava/lang/Throwable;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
message
error
public abstract void error(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
message
public abstract void error(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0481) ACC_PUBLIC, ACC_VARARGS, ACC_ABSTRACT
MethodParameters:
Name Flags
message
params
public abstract void error(java.lang.String, java.lang.Throwable);
descriptor: (Ljava/lang/String;Ljava/lang/Throwable;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
message
error
}
SourceFile: "Logger.java"
NestMembers:
org.jboss.resteasy.logging.Logger$LoggerType
InnerClasses:
public final LoggerType = org.jboss.resteasy.logging.Logger$LoggerType of org.jboss.resteasy.logging.Logger