public class org.apache.naming.ContextBindings
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.naming.ContextBindings
super_class: java.lang.Object
{
private static final java.util.Hashtable<java.lang.Object, javax.naming.Context> objectBindings;
descriptor: Ljava/util/Hashtable;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Hashtable<Ljava/lang/Object;Ljavax/naming/Context;>;
private static final java.util.Hashtable<java.lang.Thread, javax.naming.Context> threadBindings;
descriptor: Ljava/util/Hashtable;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Hashtable<Ljava/lang/Thread;Ljavax/naming/Context;>;
private static final java.util.Hashtable<java.lang.Thread, java.lang.Object> threadObjectBindings;
descriptor: Ljava/util/Hashtable;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Hashtable<Ljava/lang/Thread;Ljava/lang/Object;>;
private static final java.util.Hashtable<java.lang.ClassLoader, javax.naming.Context> clBindings;
descriptor: Ljava/util/Hashtable;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Hashtable<Ljava/lang/ClassLoader;Ljavax/naming/Context;>;
private static final java.util.Hashtable<java.lang.ClassLoader, java.lang.Object> clObjectBindings;
descriptor: Ljava/util/Hashtable;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Hashtable<Ljava/lang/ClassLoader;Ljava/lang/Object;>;
protected static final org.apache.naming.StringManager sm;
descriptor: Lorg/apache/naming/StringManager;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putstatic org.apache.naming.ContextBindings.objectBindings:Ljava/util/Hashtable;
1: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putstatic org.apache.naming.ContextBindings.threadBindings:Ljava/util/Hashtable;
2: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putstatic org.apache.naming.ContextBindings.threadObjectBindings:Ljava/util/Hashtable;
3: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putstatic org.apache.naming.ContextBindings.clBindings:Ljava/util/Hashtable;
4: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putstatic org.apache.naming.ContextBindings.clObjectBindings:Ljava/util/Hashtable;
5: ldc Lorg/apache/naming/ContextBindings;
invokestatic org.apache.naming.StringManager.getManager:(Ljava/lang/Class;)Lorg/apache/naming/StringManager;
putstatic org.apache.naming.ContextBindings.sm:Lorg/apache/naming/StringManager;
return
LocalVariableTable:
Start End Slot Name Signature
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/apache/naming/ContextBindings;
public static void bindContext(java.lang.Object, javax.naming.Context);
descriptor: (Ljava/lang/Object;Ljavax/naming/Context;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
invokestatic org.apache.naming.ContextBindings.bindContext:(Ljava/lang/Object;Ljavax/naming/Context;Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 obj Ljava/lang/Object;
0 2 1 context Ljavax/naming/Context;
MethodParameters:
Name Flags
obj
context
public static void bindContext(java.lang.Object, javax.naming.Context, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljavax/naming/Context;Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokestatic org.apache.naming.ContextAccessController.checkSecurityToken:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 2
1: getstatic org.apache.naming.ContextBindings.objectBindings:Ljava/util/Hashtable;
aload 0
aload 1
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 obj Ljava/lang/Object;
0 3 1 context Ljavax/naming/Context;
0 3 2 token Ljava/lang/Object;
MethodParameters:
Name Flags
obj
context
token
public static void unbindContext(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.apache.naming.ContextAccessController.checkSecurityToken:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 2
1: getstatic org.apache.naming.ContextBindings.objectBindings:Ljava/util/Hashtable;
aload 0
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 obj Ljava/lang/Object;
0 3 1 token Ljava/lang/Object;
MethodParameters:
Name Flags
obj
token
static javax.naming.Context getContext(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljavax/naming/Context;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.apache.naming.ContextBindings.objectBindings:Ljava/util/Hashtable;
aload 0
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.naming.Context
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public static void bindThread(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.apache.naming.ContextAccessController.checkSecurityToken:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 8
1: getstatic org.apache.naming.ContextBindings.objectBindings:Ljava/util/Hashtable;
aload 0
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.naming.Context
astore 2
start local 2 2: aload 2
ifnonnull 6
3: new javax.naming.NamingException
dup
4: getstatic org.apache.naming.ContextBindings.sm:Lorg/apache/naming/StringManager;
ldc "contextBindings.unknownContext"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokevirtual org.apache.naming.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
5: invokespecial javax.naming.NamingException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: javax.naming.Context
StackMap stack:
getstatic org.apache.naming.ContextBindings.threadBindings:Ljava/util/Hashtable;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aload 2
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: getstatic org.apache.naming.ContextBindings.threadObjectBindings:Ljava/util/Hashtable;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aload 0
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 obj Ljava/lang/Object;
0 9 1 token Ljava/lang/Object;
2 8 2 context Ljavax/naming/Context;
Exceptions:
throws javax.naming.NamingException
MethodParameters:
Name Flags
obj
token
public static void unbindThread(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.apache.naming.ContextAccessController.checkSecurityToken:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 3
1: getstatic org.apache.naming.ContextBindings.threadBindings:Ljava/util/Hashtable;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: getstatic org.apache.naming.ContextBindings.threadObjectBindings:Ljava/util/Hashtable;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 obj Ljava/lang/Object;
0 4 1 token Ljava/lang/Object;
MethodParameters:
Name Flags
obj
token
public static javax.naming.Context getThread();
descriptor: ()Ljavax/naming/Context;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: getstatic org.apache.naming.ContextBindings.threadBindings:Ljava/util/Hashtable;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.naming.Context
astore 0
start local 0 1: aload 0
ifnonnull 5
2: new javax.naming.NamingException
dup
3: getstatic org.apache.naming.ContextBindings.sm:Lorg/apache/naming/StringManager;
ldc "contextBindings.noContextBoundToThread"
invokevirtual org.apache.naming.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
4: invokespecial javax.naming.NamingException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: javax.naming.Context
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 context Ljavax/naming/Context;
Exceptions:
throws javax.naming.NamingException
static java.lang.String getThreadName();
descriptor: ()Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: getstatic org.apache.naming.ContextBindings.threadObjectBindings:Ljava/util/Hashtable;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 0
start local 0 1: aload 0
ifnonnull 5
2: new javax.naming.NamingException
dup
3: getstatic org.apache.naming.ContextBindings.sm:Lorg/apache/naming/StringManager;
ldc "contextBindings.noContextBoundToThread"
invokevirtual org.apache.naming.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
4: invokespecial javax.naming.NamingException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.lang.Object
StackMap stack:
aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 obj Ljava/lang/Object;
Exceptions:
throws javax.naming.NamingException
public static boolean isThreadBound();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic org.apache.naming.ContextBindings.threadBindings:Ljava/util/Hashtable;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.util.Hashtable.containsKey:(Ljava/lang/Object;)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static void bindClassLoader(java.lang.Object, java.lang.Object, java.lang.ClassLoader);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/ClassLoader;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokestatic org.apache.naming.ContextAccessController.checkSecurityToken:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 8
1: getstatic org.apache.naming.ContextBindings.objectBindings:Ljava/util/Hashtable;
aload 0
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.naming.Context
astore 3
start local 3 2: aload 3
ifnonnull 6
3: new javax.naming.NamingException
dup
4: getstatic org.apache.naming.ContextBindings.sm:Lorg/apache/naming/StringManager;
ldc "contextBindings.unknownContext"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokevirtual org.apache.naming.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
5: invokespecial javax.naming.NamingException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: javax.naming.Context
StackMap stack:
getstatic org.apache.naming.ContextBindings.clBindings:Ljava/util/Hashtable;
aload 2
aload 3
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: getstatic org.apache.naming.ContextBindings.clObjectBindings:Ljava/util/Hashtable;
aload 2
aload 0
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 8: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 obj Ljava/lang/Object;
0 9 1 token Ljava/lang/Object;
0 9 2 classLoader Ljava/lang/ClassLoader;
2 8 3 context Ljavax/naming/Context;
Exceptions:
throws javax.naming.NamingException
MethodParameters:
Name Flags
obj
token
classLoader
public static void unbindClassLoader(java.lang.Object, java.lang.Object, java.lang.ClassLoader);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/ClassLoader;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokestatic org.apache.naming.ContextAccessController.checkSecurityToken:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 6
1: getstatic org.apache.naming.ContextBindings.clObjectBindings:Ljava/util/Hashtable;
aload 2
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
start local 3 2: aload 3
ifnull 3
aload 3
aload 0
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 4
3: StackMap locals: java.lang.Object
StackMap stack:
return
4: StackMap locals:
StackMap stack:
getstatic org.apache.naming.ContextBindings.clBindings:Ljava/util/Hashtable;
aload 2
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
5: getstatic org.apache.naming.ContextBindings.clObjectBindings:Ljava/util/Hashtable;
aload 2
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 obj Ljava/lang/Object;
0 7 1 token Ljava/lang/Object;
0 7 2 classLoader Ljava/lang/ClassLoader;
2 6 3 o Ljava/lang/Object;
MethodParameters:
Name Flags
obj
token
classLoader
public static javax.naming.Context getClassLoader();
descriptor: ()Ljavax/naming/Context;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=0
0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
astore 0
start local 0 1: aconst_null
astore 1
start local 1 2: StackMap locals: java.lang.ClassLoader javax.naming.Context
StackMap stack:
getstatic org.apache.naming.ContextBindings.clBindings:Ljava/util/Hashtable;
aload 0
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.naming.Context
astore 1
3: aload 1
ifnull 5
4: aload 1
areturn
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.ClassLoader.getParent:()Ljava/lang/ClassLoader;
dup
astore 0
ifnonnull 2
6: new javax.naming.NamingException
dup
getstatic org.apache.naming.ContextBindings.sm:Lorg/apache/naming/StringManager;
ldc "contextBindings.noContextBoundToCL"
invokevirtual org.apache.naming.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
invokespecial javax.naming.NamingException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 7 0 cl Ljava/lang/ClassLoader;
2 7 1 context Ljavax/naming/Context;
Exceptions:
throws javax.naming.NamingException
static java.lang.String getClassLoaderName();
descriptor: ()Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=0
0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
astore 0
start local 0 1: aconst_null
astore 1
start local 1 2: StackMap locals: java.lang.ClassLoader java.lang.Object
StackMap stack:
getstatic org.apache.naming.ContextBindings.clObjectBindings:Ljava/util/Hashtable;
aload 0
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 1
3: aload 1
ifnull 5
4: aload 1
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
areturn
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.ClassLoader.getParent:()Ljava/lang/ClassLoader;
dup
astore 0
ifnonnull 2
6: new javax.naming.NamingException
dup
getstatic org.apache.naming.ContextBindings.sm:Lorg/apache/naming/StringManager;
ldc "contextBindings.noContextBoundToCL"
invokevirtual org.apache.naming.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
invokespecial javax.naming.NamingException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 7 0 cl Ljava/lang/ClassLoader;
2 7 1 obj Ljava/lang/Object;
Exceptions:
throws javax.naming.NamingException
public static boolean isClassLoaderBound();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
astore 0
start local 0 1: StackMap locals: java.lang.ClassLoader
StackMap stack:
getstatic org.apache.naming.ContextBindings.clBindings:Ljava/util/Hashtable;
aload 0
invokevirtual java.util.Hashtable.containsKey:(Ljava/lang/Object;)Z
ifeq 3
2: iconst_1
ireturn
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.ClassLoader.getParent:()Ljava/lang/ClassLoader;
dup
astore 0
ifnonnull 1
4: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 5 0 cl Ljava/lang/ClassLoader;
}
SourceFile: "ContextBindings.java"