class org.glassfish.jersey.moxy.xml.MoxyContextResolver implements javax.ws.rs.ext.ContextResolver<javax.xml.bind.JAXBContext>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.glassfish.jersey.moxy.xml.MoxyContextResolver
super_class: java.lang.Object
{
private static final java.util.logging.Logger LOGGER;
descriptor: Ljava/util/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String MOXY_OXM_MAPPING_FILE_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "eclipselink-oxm.xml"
private final boolean oxmMappingLookup;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<java.lang.String, java.lang.Object> properties;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
private final java.lang.ClassLoader classLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Class[] classes;
descriptor: [Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/glassfish/jersey/moxy/xml/MoxyContextResolver;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.util.logging.Logger.getLogger:(Ljava/lang/String;)Ljava/util/logging/Logger;
putstatic org.glassfish.jersey.moxy.xml.MoxyContextResolver.LOGGER:Ljava/util/logging/Logger;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
iconst_0
iconst_0
anewarray java.lang.Class
invokespecial org.glassfish.jersey.moxy.xml.MoxyContextResolver.<init>:(Ljava/util/Map;Ljava/lang/ClassLoader;Z[Ljava/lang/Class;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/jersey/moxy/xml/MoxyContextResolver;
public void <init>(java.util.Map<java.lang.String, java.lang.Object>, java.lang.ClassLoader, boolean, java.lang.Class[]);
descriptor: (Ljava/util/Map;Ljava/lang/ClassLoader;Z[Ljava/lang/Class;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=2, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
ifnonnull 2
invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
goto 3
StackMap locals: org.glassfish.jersey.moxy.xml.MoxyContextResolver java.util.Map java.lang.ClassLoader int java.lang.Class[]
StackMap stack: org.glassfish.jersey.moxy.xml.MoxyContextResolver
2: aload 1
StackMap locals: org.glassfish.jersey.moxy.xml.MoxyContextResolver java.util.Map java.lang.ClassLoader int java.lang.Class[]
StackMap stack: org.glassfish.jersey.moxy.xml.MoxyContextResolver java.util.Map
3: putfield org.glassfish.jersey.moxy.xml.MoxyContextResolver.properties:Ljava/util/Map;
4: aload 0
aload 2
ifnonnull 5
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
goto 6
StackMap locals:
StackMap stack: org.glassfish.jersey.moxy.xml.MoxyContextResolver
5: aload 2
StackMap locals: org.glassfish.jersey.moxy.xml.MoxyContextResolver java.util.Map java.lang.ClassLoader int java.lang.Class[]
StackMap stack: org.glassfish.jersey.moxy.xml.MoxyContextResolver java.lang.ClassLoader
6: putfield org.glassfish.jersey.moxy.xml.MoxyContextResolver.classLoader:Ljava/lang/ClassLoader;
7: aload 0
iload 3
putfield org.glassfish.jersey.moxy.xml.MoxyContextResolver.oxmMappingLookup:Z
8: aload 0
aload 4
putfield org.glassfish.jersey.moxy.xml.MoxyContextResolver.classes:[Ljava/lang/Class;
9: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/glassfish/jersey/moxy/xml/MoxyContextResolver;
0 10 1 properties Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
0 10 2 classLoader Ljava/lang/ClassLoader;
0 10 3 oxmMappingLookup Z
0 10 4 classes [Ljava/lang/Class;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;Ljava/lang/ClassLoader;Z[Ljava/lang/Class;)V
MethodParameters:
Name Flags
properties
classLoader
oxmMappingLookup
classes
public javax.xml.bind.JAXBContext getContext(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljavax/xml/bind/JAXBContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: new java.util.HashMap
dup
aload 0
getfield org.glassfish.jersey.moxy.xml.MoxyContextResolver.properties:Ljava/util/Map;
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
astore 2
start local 2 1: aload 0
getfield org.glassfish.jersey.moxy.xml.MoxyContextResolver.oxmMappingLookup:Z
ifeq 5
2: aload 1
ldc "eclipselink-oxm.xml"
invokevirtual java.lang.Class.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 3
start local 3 3: aload 3
ifnull 5
aload 2
ldc "eclipselink.oxm.metadata-source"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 5
4: aload 2
ldc "eclipselink.oxm.metadata-source"
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 5: StackMap locals: java.util.Map
StackMap stack:
aload 0
getfield org.glassfish.jersey.moxy.xml.MoxyContextResolver.classes:[Ljava/lang/Class;
ifnull 10
aload 0
getfield org.glassfish.jersey.moxy.xml.MoxyContextResolver.classes:[Ljava/lang/Class;
arraylength
ifle 10
6: iconst_1
aload 0
getfield org.glassfish.jersey.moxy.xml.MoxyContextResolver.classes:[Ljava/lang/Class;
arraylength
iadd
anewarray java.lang.Class
astore 3
start local 3 7: aload 0
getfield org.glassfish.jersey.moxy.xml.MoxyContextResolver.classes:[Ljava/lang/Class;
iconst_0
aload 3
iconst_0
aload 0
getfield org.glassfish.jersey.moxy.xml.MoxyContextResolver.classes:[Ljava/lang/Class;
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: aload 3
aload 3
arraylength
iconst_1
isub
aload 1
aastore
9: goto 11
end local 3 10: StackMap locals:
StackMap stack:
iconst_1
anewarray java.lang.Class
dup
iconst_0
aload 1
aastore
astore 3
start local 3 11: StackMap locals: java.lang.Class[]
StackMap stack:
aload 3
aload 2
aload 0
getfield org.glassfish.jersey.moxy.xml.MoxyContextResolver.classLoader:Ljava/lang/ClassLoader;
invokestatic org.eclipse.persistence.jaxb.JAXBContextFactory.createContext:([Ljava/lang/Class;Ljava/util/Map;Ljava/lang/ClassLoader;)Ljavax/xml/bind/JAXBContext;
astore 4
start local 4 12: getstatic org.glassfish.jersey.moxy.xml.MoxyContextResolver.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
new java.lang.StringBuilder
dup
ldc "Using JAXB context "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
13: aload 4
14: areturn
end local 4 15: StackMap locals:
StackMap stack: javax.xml.bind.JAXBException
pop
16: getstatic org.glassfish.jersey.moxy.xml.MoxyContextResolver.LOGGER:Ljava/util/logging/Logger;
ldc "Unable to create JAXB context."
invokevirtual java.util.logging.Logger.fine:(Ljava/lang/String;)V
17: aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/glassfish/jersey/moxy/xml/MoxyContextResolver;
0 18 1 type Ljava/lang/Class<*>;
1 18 2 propertiesCopy Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
3 5 3 eclipseLinkOxm Ljava/io/InputStream;
7 10 3 typeArray [Ljava/lang/Class;
11 18 3 typeArray [Ljava/lang/Class;
12 15 4 context Ljavax/xml/bind/JAXBContext;
Exception table:
from to target type
11 14 15 Class javax.xml.bind.JAXBException
Signature: (Ljava/lang/Class<*>;)Ljavax/xml/bind/JAXBContext;
MethodParameters:
Name Flags
type
public java.lang.Object getContext(java.lang.Class);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual org.glassfish.jersey.moxy.xml.MoxyContextResolver.getContext:(Ljava/lang/Class;)Ljavax/xml/bind/JAXBContext;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljavax/ws/rs/ext/ContextResolver<Ljavax/xml/bind/JAXBContext;>;
SourceFile: "MoxyContextResolver.java"