public class org.jboss.resteasy.plugins.providers.RegisterBuiltin
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jboss.resteasy.plugins.providers.RegisterBuiltin
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // org.jboss.resteasy.plugins.providers.RegisterBuiltin this
0: .line 31
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // org.jboss.resteasy.plugins.providers.RegisterBuiltin this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/plugins/providers/RegisterBuiltin;
public static void register(org.jboss.resteasy.spi.ResteasyProviderFactory);
descriptor: (Lorg/jboss/resteasy/spi/ResteasyProviderFactory;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 // org.jboss.resteasy.spi.ResteasyProviderFactory factory
0: .line 36
aload 0 /* factory */
instanceof org.jboss.resteasy.core.ThreadLocalResteasyProviderFactory
ifeq 2
1: .line 37
aload 0 /* factory */
checkcast org.jboss.resteasy.core.ThreadLocalResteasyProviderFactory
invokevirtual org.jboss.resteasy.core.ThreadLocalResteasyProviderFactory.getDelegate:()Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
goto 3
2: .line 38
StackMap locals:
StackMap stack:
aload 0 /* factory */
3: .line 36
StackMap locals:
StackMap stack: org.jboss.resteasy.spi.ResteasyProviderFactory
astore 1 /* monitor */
start local 1 // org.jboss.resteasy.spi.ResteasyProviderFactory monitor
4: .line 39
aload 1 /* monitor */
dup
astore 2
monitorenter
5: .line 41
aload 0 /* factory */
invokevirtual org.jboss.resteasy.spi.ResteasyProviderFactory.isBuiltinsRegistered:()Z
ifne 6
aload 0 /* factory */
invokevirtual org.jboss.resteasy.spi.ResteasyProviderFactory.isRegisterBuiltins:()Z
ifne 8
6: .line 42
StackMap locals: org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.spi.ResteasyProviderFactory
StackMap stack:
aload 2
monitorexit
7: return
8: .line 45
StackMap locals:
StackMap stack:
aload 0 /* factory */
invokestatic org.jboss.resteasy.plugins.providers.RegisterBuiltin.registerProviders:(Lorg/jboss/resteasy/spi/ResteasyProviderFactory;)V
9: .line 46
goto 12
10: .line 47
StackMap locals:
StackMap stack: java.lang.Exception
astore 3 /* e */
start local 3 // java.lang.Exception e
11: .line 49
new java.lang.RuntimeException
dup
aload 3 /* e */
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 // java.lang.Exception e
12: .line 51
StackMap locals:
StackMap stack:
aload 0 /* factory */
iconst_1
invokevirtual org.jboss.resteasy.spi.ResteasyProviderFactory.setBuiltinsRegistered:(Z)V
13: .line 39
aload 2
monitorexit
14: goto 17
StackMap locals:
StackMap stack: java.lang.Throwable
15: aload 2
monitorexit
16: athrow
17: .line 53
StackMap locals:
StackMap stack:
return
end local 1 // org.jboss.resteasy.spi.ResteasyProviderFactory monitor
end local 0 // org.jboss.resteasy.spi.ResteasyProviderFactory factory
LocalVariableTable:
Start End Slot Name Signature
0 18 0 factory Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
4 18 1 monitor Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
11 12 3 e Ljava/lang/Exception;
Exception table:
from to target type
8 9 10 Class java.lang.Exception
5 7 15 any
8 14 15 any
15 16 15 any
MethodParameters:
Name Flags
factory
public static void registerProviders(org.jboss.resteasy.spi.ResteasyProviderFactory);
descriptor: (Lorg/jboss/resteasy/spi/ResteasyProviderFactory;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=8, args_size=1
start local 0 // org.jboss.resteasy.spi.ResteasyProviderFactory factory
0: .line 58
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnonnull 3
1: .line 60
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
new java.lang.StringBuilder
dup
ldc "META-INF/services/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc Ljavax/ws/rs/ext/Providers;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.ClassLoader.getResources:(Ljava/lang/String;)Ljava/util/Enumeration;
astore 1 /* en */
start local 1 // java.util.Enumeration en
2: .line 61
goto 4
end local 1 // java.util.Enumeration en
3: .line 64
StackMap locals:
StackMap stack:
new org.jboss.resteasy.plugins.providers.RegisterBuiltin$1
dup
invokespecial org.jboss.resteasy.plugins.providers.RegisterBuiltin$1.<init>:()V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast java.util.Enumeration
astore 1 /* en */
start local 1 // java.util.Enumeration en
4: .line 74
StackMap locals: java.util.Enumeration
StackMap stack:
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 2 /* origins */
start local 2 // java.util.Map origins
5: .line 75
goto 23
6: .line 77
StackMap locals: java.util.Map
StackMap stack:
aload 1 /* en */
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.net.URL
astore 3 /* url */
start local 3 // java.net.URL url
7: .line 79
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnonnull 10
8: .line 81
aload 3 /* url */
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
astore 4 /* is */
start local 4 // java.io.InputStream is
9: .line 82
goto 11
end local 4 // java.io.InputStream is
10: .line 85
StackMap locals: java.net.URL
StackMap stack:
new org.jboss.resteasy.plugins.providers.RegisterBuiltin$2
dup
aload 3 /* url */
invokespecial org.jboss.resteasy.plugins.providers.RegisterBuiltin$2.<init>:(Ljava/net/URL;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast java.io.InputStream
astore 4 /* is */
start local 4 // java.io.InputStream is
11: .line 97
StackMap locals: java.io.InputStream
StackMap stack:
new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 4 /* is */
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 5 /* reader */
start local 5 // java.io.BufferedReader reader
12: .line 99
goto 16
start local 6 // java.lang.String line
13: .line 101
StackMap locals: java.io.BufferedReader java.lang.String
StackMap stack:
aload 6 /* line */
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 6 /* line */
14: .line 102
aload 6 /* line */
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 15
goto 16
15: .line 103
StackMap locals:
StackMap stack:
aload 2 /* origins */
aload 6 /* line */
aload 3 /* url */
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 6 // java.lang.String line
16: .line 99
StackMap locals:
StackMap stack:
aload 5 /* reader */
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
dup
astore 6 /* line */
start local 6 // java.lang.String line
17: ifnonnull 13
end local 6 // java.lang.String line
end local 5 // java.io.BufferedReader reader
18: .line 105
goto 22
19: .line 107
StackMap locals: org.jboss.resteasy.spi.ResteasyProviderFactory java.util.Enumeration java.util.Map java.net.URL java.io.InputStream
StackMap stack: java.lang.Throwable
astore 7
20: .line 108
aload 4 /* is */
invokevirtual java.io.InputStream.close:()V
21: .line 109
aload 7
athrow
22: .line 108
StackMap locals:
StackMap stack:
aload 4 /* is */
invokevirtual java.io.InputStream.close:()V
end local 4 // java.io.InputStream is
end local 3 // java.net.URL url
23: .line 75
StackMap locals:
StackMap stack:
aload 1 /* en */
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 6
24: .line 111
aload 2 /* origins */
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 38
StackMap locals: org.jboss.resteasy.spi.ResteasyProviderFactory java.util.Enumeration java.util.Map top java.util.Iterator
StackMap stack:
25: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3 /* entry */
start local 3 // java.util.Map$Entry entry
26: .line 113
aload 3 /* entry */
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
astore 5 /* line */
start local 5 // java.lang.String line
27: .line 117
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnonnull 30
28: .line 119
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
aload 5 /* line */
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 6 /* clazz */
start local 6 // java.lang.Class clazz
29: .line 120
goto 31
end local 6 // java.lang.Class clazz
30: .line 123
StackMap locals: org.jboss.resteasy.spi.ResteasyProviderFactory java.util.Enumeration java.util.Map java.util.Map$Entry java.util.Iterator java.lang.String
StackMap stack:
new org.jboss.resteasy.plugins.providers.RegisterBuiltin$3
dup
aload 5 /* line */
invokespecial org.jboss.resteasy.plugins.providers.RegisterBuiltin$3.<init>:(Ljava/lang/String;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast java.lang.Class
astore 6 /* clazz */
start local 6 // java.lang.Class clazz
31: .line 133
StackMap locals: java.lang.Class
StackMap stack:
aload 0 /* factory */
aload 6 /* clazz */
iconst_1
invokevirtual org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider:(Ljava/lang/Class;Z)V
end local 6 // java.lang.Class clazz
32: .line 134
goto 38
33: .line 135
StackMap locals: org.jboss.resteasy.spi.ResteasyProviderFactory java.util.Enumeration java.util.Map java.util.Map$Entry java.util.Iterator java.lang.String
StackMap stack: java.lang.NoClassDefFoundError
astore 6 /* e */
start local 6 // java.lang.NoClassDefFoundError e
34: .line 137
getstatic org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.LOGGER:Lorg/jboss/resteasy/resteasy_jaxrs/i18n/LogMessages;
aload 5 /* line */
aload 3 /* entry */
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.net.URL
aload 6 /* e */
invokeinterface org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.noClassDefFoundErrorError:(Ljava/lang/String;Ljava/net/URL;Ljava/lang/Throwable;)V
end local 6 // java.lang.NoClassDefFoundError e
35: goto 38
36: .line 139
StackMap locals:
StackMap stack: java.lang.Exception
astore 6 /* ex */
start local 6 // java.lang.Exception ex
37: .line 141
getstatic org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.LOGGER:Lorg/jboss/resteasy/resteasy_jaxrs/i18n/LogMessages;
aload 5 /* line */
aload 3 /* entry */
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.net.URL
aload 6 /* ex */
invokeinterface org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.classNotFoundException:(Ljava/lang/String;Ljava/net/URL;Ljava/lang/Throwable;)V
end local 6 // java.lang.Exception ex
end local 5 // java.lang.String line
end local 3 // java.util.Map$Entry entry
38: .line 111
StackMap locals: org.jboss.resteasy.spi.ResteasyProviderFactory java.util.Enumeration java.util.Map top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 25
39: .line 144
new org.jboss.resteasy.plugins.providers.RegisterBuiltin$4
dup
invokespecial org.jboss.resteasy.plugins.providers.RegisterBuiltin$4.<init>:()V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
40: .line 151
ifeq 44
41: .line 152
aload 0 /* factory */
ldc Lorg/jboss/resteasy/plugins/interceptors/encoding/AcceptEncodingGZIPFilter;
iconst_1
invokevirtual org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider:(Ljava/lang/Class;Z)V
42: .line 153
aload 0 /* factory */
ldc Lorg/jboss/resteasy/plugins/interceptors/encoding/GZIPDecodingInterceptor;
iconst_1
invokevirtual org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider:(Ljava/lang/Class;Z)V
43: .line 154
aload 0 /* factory */
ldc Lorg/jboss/resteasy/plugins/interceptors/encoding/GZIPEncodingInterceptor;
iconst_1
invokevirtual org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider:(Ljava/lang/Class;Z)V
44: .line 156
StackMap locals: org.jboss.resteasy.spi.ResteasyProviderFactory java.util.Enumeration java.util.Map
StackMap stack:
return
end local 2 // java.util.Map origins
end local 1 // java.util.Enumeration en
end local 0 // org.jboss.resteasy.spi.ResteasyProviderFactory factory
LocalVariableTable:
Start End Slot Name Signature
0 45 0 factory Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
2 3 1 en Ljava/util/Enumeration<Ljava/net/URL;>;
4 45 1 en Ljava/util/Enumeration<Ljava/net/URL;>;
5 45 2 origins Ljava/util/Map<Ljava/lang/String;Ljava/net/URL;>;
7 23 3 url Ljava/net/URL;
9 10 4 is Ljava/io/InputStream;
11 23 4 is Ljava/io/InputStream;
12 18 5 reader Ljava/io/BufferedReader;
13 16 6 line Ljava/lang/String;
17 18 6 line Ljava/lang/String;
26 38 3 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/net/URL;>;
27 38 5 line Ljava/lang/String;
29 30 6 clazz Ljava/lang/Class;
31 32 6 clazz Ljava/lang/Class;
34 35 6 e Ljava/lang/NoClassDefFoundError;
37 38 6 ex Ljava/lang/Exception;
Exception table:
from to target type
11 19 19 any
27 32 33 Class java.lang.NoClassDefFoundError
27 32 36 Class java.lang.ClassNotFoundException
27 32 36 Class java.security.PrivilegedActionException
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
factory
}
SourceFile: "RegisterBuiltin.java"
NestMembers:
org.jboss.resteasy.plugins.providers.RegisterBuiltin$1 org.jboss.resteasy.plugins.providers.RegisterBuiltin$2 org.jboss.resteasy.plugins.providers.RegisterBuiltin$3 org.jboss.resteasy.plugins.providers.RegisterBuiltin$4
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
org.jboss.resteasy.plugins.providers.RegisterBuiltin$1
org.jboss.resteasy.plugins.providers.RegisterBuiltin$2
org.jboss.resteasy.plugins.providers.RegisterBuiltin$3
org.jboss.resteasy.plugins.providers.RegisterBuiltin$4