public class org.jboss.resteasy.core.LocatorRegistry
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jboss.resteasy.core.LocatorRegistry
super_class: java.lang.Object
{
protected org.jboss.resteasy.core.registry.RootNode root;
descriptor: Lorg/jboss/resteasy/core/registry/RootNode;
flags: (0x0004) ACC_PROTECTED
protected org.jboss.resteasy.spi.ResteasyProviderFactory providerFactory;
descriptor: Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
flags: (0x0004) ACC_PROTECTED
public void <init>(java.lang.Class<?>, org.jboss.resteasy.spi.ResteasyProviderFactory);
descriptor: (Ljava/lang/Class;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.jboss.resteasy.core.registry.RootNode
dup
invokespecial org.jboss.resteasy.core.registry.RootNode.<init>:()V
putfield org.jboss.resteasy.core.LocatorRegistry.root:Lorg/jboss/resteasy/core/registry/RootNode;
2: aload 0
aload 2
putfield org.jboss.resteasy.core.LocatorRegistry.providerFactory:Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
3: aload 2
invokevirtual org.jboss.resteasy.spi.ResteasyProviderFactory.getResourceBuilder:()Lorg/jboss/resteasy/spi/metadata/ResourceBuilder;
astore 3
start local 3 4: aload 1
invokestatic java.lang.reflect.Proxy.isProxyClass:(Ljava/lang/Class;)Z
ifeq 12
5: aload 1
invokevirtual java.lang.Class.getInterfaces:()[Ljava/lang/Class;
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 10
StackMap locals: org.jboss.resteasy.core.LocatorRegistry java.lang.Class org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.spi.metadata.ResourceBuilder top int int java.lang.Class[]
StackMap stack:
6: aload 7
iload 5
aaload
astore 4
start local 4 7: aload 3
aload 4
invokevirtual org.jboss.resteasy.spi.metadata.ResourceBuilder.getLocatorFromAnnotations:(Ljava/lang/Class;)Lorg/jboss/resteasy/spi/metadata/ResourceClass;
astore 8
start local 8 8: aload 0
aload 8
invokevirtual org.jboss.resteasy.core.LocatorRegistry.register:(Lorg/jboss/resteasy/spi/metadata/ResourceClass;)V
end local 8 end local 4 9: iinc 5 1
StackMap locals:
StackMap stack:
10: iload 5
iload 6
if_icmplt 6
11: goto 14
12: StackMap locals: org.jboss.resteasy.core.LocatorRegistry java.lang.Class org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.spi.metadata.ResourceBuilder
StackMap stack:
aload 3
aload 1
invokevirtual org.jboss.resteasy.spi.metadata.ResourceBuilder.getLocatorFromAnnotations:(Ljava/lang/Class;)Lorg/jboss/resteasy/spi/metadata/ResourceClass;
astore 4
start local 4 13: aload 0
aload 4
invokevirtual org.jboss.resteasy.core.LocatorRegistry.register:(Lorg/jboss/resteasy/spi/metadata/ResourceClass;)V
end local 4 14: StackMap locals:
StackMap stack:
return
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/core/LocatorRegistry;
0 15 1 clazz Ljava/lang/Class<*>;
0 15 2 providerFactory Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
4 15 3 resourceBuilder Lorg/jboss/resteasy/spi/metadata/ResourceBuilder;
7 9 4 intf Ljava/lang/Class<*>;
8 9 8 resourceClass Lorg/jboss/resteasy/spi/metadata/ResourceClass;
13 14 4 resourceClass Lorg/jboss/resteasy/spi/metadata/ResourceClass;
Signature: (Ljava/lang/Class<*>;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;)V
MethodParameters:
Name Flags
clazz
providerFactory
public void register(org.jboss.resteasy.spi.metadata.ResourceClass);
descriptor: (Lorg/jboss/resteasy/spi/metadata/ResourceClass;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.jboss.resteasy.spi.metadata.ResourceClass.getResourceMethods:()[Lorg/jboss/resteasy/spi/metadata/ResourceMethod;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 4
StackMap locals: org.jboss.resteasy.core.LocatorRegistry org.jboss.resteasy.spi.metadata.ResourceClass top int int org.jboss.resteasy.spi.metadata.ResourceMethod[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 0
aload 2
invokevirtual org.jboss.resteasy.core.LocatorRegistry.processMethod:(Lorg/jboss/resteasy/spi/metadata/ResourceLocator;)V
end local 2 3: iinc 3 1
StackMap locals:
StackMap stack:
4: iload 3
iload 4
if_icmplt 1
5: aload 1
invokeinterface org.jboss.resteasy.spi.metadata.ResourceClass.getResourceLocators:()[Lorg/jboss/resteasy/spi/metadata/ResourceLocator;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 9
StackMap locals: org.jboss.resteasy.core.LocatorRegistry org.jboss.resteasy.spi.metadata.ResourceClass top int int org.jboss.resteasy.spi.metadata.ResourceLocator[]
StackMap stack:
6: aload 5
iload 3
aaload
astore 2
start local 2 7: aload 0
aload 2
invokevirtual org.jboss.resteasy.core.LocatorRegistry.processMethod:(Lorg/jboss/resteasy/spi/metadata/ResourceLocator;)V
end local 2 8: iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
iload 4
if_icmplt 6
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jboss/resteasy/core/LocatorRegistry;
0 11 1 resourceClass Lorg/jboss/resteasy/spi/metadata/ResourceClass;
2 3 2 method Lorg/jboss/resteasy/spi/metadata/ResourceMethod;
7 8 2 method Lorg/jboss/resteasy/spi/metadata/ResourceLocator;
MethodParameters:
Name Flags
resourceClass
protected void processMethod(org.jboss.resteasy.spi.metadata.ResourceLocator);
descriptor: (Lorg/jboss/resteasy/spi/metadata/ResourceLocator;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.jboss.resteasy.spi.metadata.ResourceLocator.getFullpath:()Ljava/lang/String;
ifnonnull 1
ldc ""
goto 2
StackMap locals:
StackMap stack:
1: aload 1
invokeinterface org.jboss.resteasy.spi.metadata.ResourceLocator.getFullpath:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
2: astore 2
start local 2 3: aload 0
getfield org.jboss.resteasy.core.LocatorRegistry.providerFactory:Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
invokevirtual org.jboss.resteasy.spi.ResteasyProviderFactory.getInjectorFactory:()Lorg/jboss/resteasy/spi/InjectorFactory;
astore 3
start local 3 4: aload 1
instanceof org.jboss.resteasy.spi.metadata.ResourceMethod
ifeq 8
5: new org.jboss.resteasy.core.ResourceMethodInvoker
dup
aload 1
checkcast org.jboss.resteasy.spi.metadata.ResourceMethod
aload 3
aconst_null
aload 0
getfield org.jboss.resteasy.core.LocatorRegistry.providerFactory:Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
invokespecial org.jboss.resteasy.core.ResourceMethodInvoker.<init>:(Lorg/jboss/resteasy/spi/metadata/ResourceMethod;Lorg/jboss/resteasy/spi/InjectorFactory;Lorg/jboss/resteasy/spi/ResourceFactory;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;)V
astore 4
start local 4 6: aload 0
getfield org.jboss.resteasy.core.LocatorRegistry.root:Lorg/jboss/resteasy/core/registry/RootNode;
aload 2
aload 4
invokevirtual org.jboss.resteasy.core.registry.RootNode.addInvoker:(Ljava/lang/String;Lorg/jboss/resteasy/core/ResourceInvoker;)V
end local 4 7: goto 10
8: StackMap locals: java.lang.String org.jboss.resteasy.spi.InjectorFactory
StackMap stack:
new org.jboss.resteasy.core.ResourceLocatorInvoker
dup
aconst_null
aload 3
aload 0
getfield org.jboss.resteasy.core.LocatorRegistry.providerFactory:Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
aload 1
invokespecial org.jboss.resteasy.core.ResourceLocatorInvoker.<init>:(Lorg/jboss/resteasy/spi/ResourceFactory;Lorg/jboss/resteasy/spi/InjectorFactory;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Lorg/jboss/resteasy/spi/metadata/ResourceLocator;)V
astore 4
start local 4 9: aload 0
getfield org.jboss.resteasy.core.LocatorRegistry.root:Lorg/jboss/resteasy/core/registry/RootNode;
aload 2
aload 4
invokevirtual org.jboss.resteasy.core.registry.RootNode.addInvoker:(Ljava/lang/String;Lorg/jboss/resteasy/core/ResourceInvoker;)V
end local 4 10: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jboss/resteasy/core/LocatorRegistry;
0 11 1 method Lorg/jboss/resteasy/spi/metadata/ResourceLocator;
3 11 2 fullpath Ljava/lang/String;
4 11 3 injectorFactory Lorg/jboss/resteasy/spi/InjectorFactory;
6 7 4 invoker Lorg/jboss/resteasy/core/ResourceMethodInvoker;
9 10 4 locator Lorg/jboss/resteasy/core/ResourceLocatorInvoker;
MethodParameters:
Name Flags
method
public org.jboss.resteasy.core.ResourceInvoker getResourceInvoker(org.jboss.resteasy.spi.HttpRequest);
descriptor: (Lorg/jboss/resteasy/spi/HttpRequest;)Lorg/jboss/resteasy/core/ResourceInvoker;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.jboss.resteasy.spi.HttpRequest.getUri:()Lorg/jboss/resteasy/spi/ResteasyUriInfo;
invokevirtual org.jboss.resteasy.spi.ResteasyUriInfo.getEncodedMatchedPaths:()Ljava/util/List;
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 1: aload 2
invokevirtual java.lang.String.length:()I
istore 3
start local 3 2: aload 0
getfield org.jboss.resteasy.core.LocatorRegistry.root:Lorg/jboss/resteasy/core/registry/RootNode;
aload 1
iload 3
invokevirtual org.jboss.resteasy.core.registry.RootNode.match:(Lorg/jboss/resteasy/spi/HttpRequest;I)Lorg/jboss/resteasy/core/ResourceInvoker;
3: areturn
end local 3 end local 2 4: StackMap locals:
StackMap stack: java.lang.RuntimeException
astore 2
start local 2 5: aload 2
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jboss/resteasy/core/LocatorRegistry;
0 6 1 request Lorg/jboss/resteasy/spi/HttpRequest;
1 4 2 currentUri Ljava/lang/String;
2 4 3 startAt I
5 6 2 e Ljava/lang/RuntimeException;
Exception table:
from to target type
0 3 4 Class java.lang.RuntimeException
MethodParameters:
Name Flags
request
}
SourceFile: "LocatorRegistry.java"