public class org.jboss.resteasy.plugins.server.resourcefactory.JndiComponentResourceFactory implements org.jboss.resteasy.spi.ResourceFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jboss.resteasy.plugins.server.resourcefactory.JndiComponentResourceFactory
super_class: java.lang.Object
{
private java.lang.String jndiName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private javax.naming.InitialContext ctx;
descriptor: Ljavax/naming/InitialContext;
flags: (0x0002) ACC_PRIVATE
private volatile java.lang.Object reference;
descriptor: Ljava/lang/Object;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private java.lang.Class scannable;
descriptor: Ljava/lang/Class;
flags: (0x0002) ACC_PRIVATE
private boolean cache;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String, java.lang.Class, boolean);
descriptor: (Ljava/lang/String;Ljava/lang/Class;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.jboss.resteasy.plugins.server.resourcefactory.JndiComponentResourceFactory.jndiName:Ljava/lang/String;
2: aload 0
aload 2
putfield org.jboss.resteasy.plugins.server.resourcefactory.JndiComponentResourceFactory.scannable:Ljava/lang/Class;
3: aload 0
iload 3
putfield org.jboss.resteasy.plugins.server.resourcefactory.JndiComponentResourceFactory.cache:Z
4: aload 0
new javax.naming.InitialContext
dup
invokespecial javax.naming.InitialContext.<init>:()V
putfield org.jboss.resteasy.plugins.server.resourcefactory.JndiComponentResourceFactory.ctx:Ljavax/naming/InitialContext;
5: goto 8
6: StackMap locals: org.jboss.resteasy.plugins.server.resourcefactory.JndiComponentResourceFactory java.lang.String java.lang.Class int
StackMap stack: javax.naming.NamingException
astore 4
start local 4 7: new java.lang.RuntimeException
dup
aload 4
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 8: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/jboss/resteasy/plugins/server/resourcefactory/JndiComponentResourceFactory;
0 9 1 jndiName Ljava/lang/String;
0 9 2 scannable Ljava/lang/Class;
0 9 3 cacheReference Z
7 8 4 e Ljavax/naming/NamingException;
Exception table:
from to target type
4 5 6 Class javax.naming.NamingException
MethodParameters:
Name Flags
jndiName final
scannable final
cacheReference final
public void registered(org.jboss.resteasy.spi.ResteasyProviderFactory);
descriptor: (Lorg/jboss/resteasy/spi/ResteasyProviderFactory;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/plugins/server/resourcefactory/JndiComponentResourceFactory;
0 1 1 factory Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
MethodParameters:
Name Flags
factory
public java.lang.Object createResource(org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.HttpResponse, org.jboss.resteasy.spi.ResteasyProviderFactory);
descriptor: (Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jboss.resteasy.plugins.server.resourcefactory.JndiComponentResourceFactory.reference:Ljava/lang/Object;
ifnull 1
aload 0
getfield org.jboss.resteasy.plugins.server.resourcefactory.JndiComponentResourceFactory.reference:Ljava/lang/Object;
areturn
1: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.plugins.server.resourcefactory.JndiComponentResourceFactory.reference:Ljava/lang/Object;
astore 4
start local 4 2: aload 4
ifnonnull 14
3: aload 0
getfield org.jboss.resteasy.plugins.server.resourcefactory.JndiComponentResourceFactory.ctx:Ljavax/naming/InitialContext;
aload 0
getfield org.jboss.resteasy.plugins.server.resourcefactory.JndiComponentResourceFactory.jndiName:Ljava/lang/String;
invokevirtual javax.naming.InitialContext.lookup:(Ljava/lang/String;)Ljava/lang/Object;
astore 4
4: goto 7
5: StackMap locals: org.jboss.resteasy.plugins.server.resourcefactory.JndiComponentResourceFactory org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.spi.HttpResponse org.jboss.resteasy.spi.ResteasyProviderFactory java.lang.Object
StackMap stack: javax.naming.NamingException
astore 5
start local 5 6: new java.lang.RuntimeException
dup
aload 5
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 7: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.plugins.server.resourcefactory.JndiComponentResourceFactory.cache:Z
ifeq 14
8: aload 0
dup
astore 5
monitorenter
9: aload 0
aload 4
putfield org.jboss.resteasy.plugins.server.resourcefactory.JndiComponentResourceFactory.reference:Ljava/lang/Object;
10: aload 5
monitorexit
11: goto 14
StackMap locals: org.jboss.resteasy.plugins.server.resourcefactory.JndiComponentResourceFactory org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.spi.HttpResponse org.jboss.resteasy.spi.ResteasyProviderFactory java.lang.Object org.jboss.resteasy.plugins.server.resourcefactory.JndiComponentResourceFactory
StackMap stack: java.lang.Throwable
12: aload 5
monitorexit
13: athrow
14: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/jboss/resteasy/plugins/server/resourcefactory/JndiComponentResourceFactory;
0 15 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 15 2 response Lorg/jboss/resteasy/spi/HttpResponse;
0 15 3 factory Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
2 15 4 ref Ljava/lang/Object;
6 7 5 e Ljavax/naming/NamingException;
Exception table:
from to target type
3 4 5 Class javax.naming.NamingException
9 11 12 any
12 13 12 any
MethodParameters:
Name Flags
request
response
factory
public void unregistered();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/plugins/server/resourcefactory/JndiComponentResourceFactory;
public java.lang.Class<?> getScannableClass();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.plugins.server.resourcefactory.JndiComponentResourceFactory.scannable:Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/plugins/server/resourcefactory/JndiComponentResourceFactory;
Signature: ()Ljava/lang/Class<*>;
public void requestFinished(org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.HttpResponse, java.lang.Object);
descriptor: (Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/plugins/server/resourcefactory/JndiComponentResourceFactory;
0 1 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 1 2 response Lorg/jboss/resteasy/spi/HttpResponse;
0 1 3 resource Ljava/lang/Object;
MethodParameters:
Name Flags
request
response
resource
}
SourceFile: "JndiComponentResourceFactory.java"