public class com.sun.jndi.rmi.registry.RegistryContextFactory implements javax.naming.spi.ObjectFactory, javax.naming.spi.InitialContextFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.jndi.rmi.registry.RegistryContextFactory
super_class: java.lang.Object
{
public static final java.lang.String ADDRESS_TYPE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "URL"
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 Lcom/sun/jndi/rmi/registry/RegistryContextFactory;
public javax.naming.Context getInitialContext(java.util.Hashtable<?, ?>);
descriptor: (Ljava/util/Hashtable;)Ljavax/naming/Context;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 2
1: aload 1
invokevirtual java.util.Hashtable.clone:()Ljava/lang/Object;
checkcast java.util.Hashtable
astore 1
2: StackMap locals:
StackMap stack:
aload 1
invokestatic com.sun.jndi.rmi.registry.RegistryContextFactory.getInitCtxURL:(Ljava/util/Hashtable;)Ljava/lang/String;
aload 1
invokestatic com.sun.jndi.rmi.registry.RegistryContextFactory.URLToContext:(Ljava/lang/String;Ljava/util/Hashtable;)Ljavax/naming/Context;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/jndi/rmi/registry/RegistryContextFactory;
0 3 1 env Ljava/util/Hashtable<**>;
Exceptions:
throws javax.naming.NamingException
Signature: (Ljava/util/Hashtable<**>;)Ljavax/naming/Context;
MethodParameters:
Name Flags
env
public getObjectInstance(, javax.naming.Name, javax.naming.Context, java.util.Hashtable<?, ?>);
descriptor: (Ljava/lang/Object;Ljavax/naming/Name;Ljavax/naming/Context;Ljava/util/Hashtable;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
invokestatic com.sun.jndi.rmi.registry.RegistryContextFactory.isRegistryRef:(Ljava/lang/Object;)Z
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 1
checkcast javax.naming.Reference
invokestatic com.sun.jndi.rmi.registry.RegistryContextFactory.getURLs:(Ljavax/naming/Reference;)[Ljava/lang/String;
aload 4
invokestatic com.sun.jndi.rmi.registry.RegistryContextFactory.URLsToObject:([Ljava/lang/String;Ljava/util/Hashtable;)Ljava/lang/Object;
astore 5
start local 5 3: aload 5
instanceof com.sun.jndi.rmi.registry.RegistryContext
ifeq 6
4: aload 5
checkcast com.sun.jndi.rmi.registry.RegistryContext
astore 6
start local 6 5: aload 6
aload 1
checkcast javax.naming.Reference
putfield com.sun.jndi.rmi.registry.RegistryContext.reference:Ljavax/naming/Reference;
end local 6 6: StackMap locals: java.lang.Object
StackMap stack:
aload 5
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/jndi/rmi/registry/RegistryContextFactory;
0 7 1 ref Ljava/lang/Object;
0 7 2 name Ljavax/naming/Name;
0 7 3 nameCtx Ljavax/naming/Context;
0 7 4 env Ljava/util/Hashtable<**>;
3 7 5 obj Ljava/lang/Object;
5 6 6 ctx Lcom/sun/jndi/rmi/registry/RegistryContext;
Exceptions:
throws javax.naming.NamingException
Signature: (Ljava/lang/Object;Ljavax/naming/Name;Ljavax/naming/Context;Ljava/util/Hashtable<**>;)Ljava/lang/Object;
MethodParameters:
Name Flags
ref
name
nameCtx
env
private static javax.naming.Context URLToContext(java.lang.String, java.util.Hashtable);
descriptor: (Ljava/lang/String;Ljava/util/Hashtable;)Ljavax/naming/Context;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: new com.sun.jndi.url.rmi.rmiURLContextFactory
dup
invokespecial com.sun.jndi.url.rmi.rmiURLContextFactory.<init>:()V
astore 2
start local 2 1: aload 2
aload 0
aconst_null
aconst_null
aload 1
invokevirtual com.sun.jndi.url.rmi.rmiURLContextFactory.getObjectInstance:(Ljava/lang/Object;Ljavax/naming/Name;Ljavax/naming/Context;Ljava/util/Hashtable;)Ljava/lang/Object;
astore 3
start local 3 2: aload 3
instanceof javax.naming.Context
ifeq 4
3: aload 3
checkcast javax.naming.Context
areturn
4: StackMap locals: com.sun.jndi.url.rmi.rmiURLContextFactory java.lang.Object
StackMap stack:
new javax.naming.NotContextException
dup
aload 0
invokespecial javax.naming.NotContextException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 url Ljava/lang/String;
0 5 1 env Ljava/util/Hashtable;
1 5 2 factory Lcom/sun/jndi/url/rmi/rmiURLContextFactory;
2 5 3 obj Ljava/lang/Object;
Exceptions:
throws javax.naming.NamingException
MethodParameters:
Name Flags
url
env
private static java.lang.Object URLsToObject(java.lang.String[], java.util.Hashtable);
descriptor: ([Ljava/lang/String;Ljava/util/Hashtable;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: new com.sun.jndi.url.rmi.rmiURLContextFactory
dup
invokespecial com.sun.jndi.url.rmi.rmiURLContextFactory.<init>:()V
astore 2
start local 2 1: aload 2
aload 0
aconst_null
aconst_null
aload 1
invokevirtual com.sun.jndi.url.rmi.rmiURLContextFactory.getObjectInstance:(Ljava/lang/Object;Ljavax/naming/Name;Ljavax/naming/Context;Ljava/util/Hashtable;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 urls [Ljava/lang/String;
0 2 1 env Ljava/util/Hashtable;
1 2 2 factory Lcom/sun/jndi/url/rmi/rmiURLContextFactory;
Exceptions:
throws javax.naming.NamingException
MethodParameters:
Name Flags
urls
env
private static java.lang.String getInitCtxURL(java.util.Hashtable);
descriptor: (Ljava/util/Hashtable;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
ifnull 3
2: aload 0
ldc "java.naming.provider.url"
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 1
3: StackMap locals: java.lang.String
StackMap stack:
aload 1
ifnull 4
aload 1
goto 5
StackMap locals:
StackMap stack:
4: ldc "rmi:"
StackMap locals:
StackMap stack: java.lang.String
5: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 env Ljava/util/Hashtable;
1 6 1 url Ljava/lang/String;
MethodParameters:
Name Flags
env
private static boolean isRegistryRef(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
instanceof javax.naming.Reference
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
ldc Lcom/sun/jndi/rmi/registry/RegistryContextFactory;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 1
start local 1 3: aload 0
checkcast javax.naming.Reference
astore 2
start local 2 4: aload 1
aload 2
invokevirtual javax.naming.Reference.getFactoryClassName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 obj Ljava/lang/Object;
3 5 1 thisClassName Ljava/lang/String;
4 5 2 ref Ljavax/naming/Reference;
MethodParameters:
Name Flags
obj
private static java.lang.String[] getURLs(javax.naming.Reference);
descriptor: (Ljavax/naming/Reference;)[Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
invokevirtual javax.naming.Reference.size:()I
anewarray java.lang.String
astore 2
start local 2 2: aload 0
invokevirtual javax.naming.Reference.getAll:()Ljava/util/Enumeration;
astore 3
start local 3 3: goto 8
4: StackMap locals: int java.lang.String[] java.util.Enumeration
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast javax.naming.RefAddr
astore 4
start local 4 5: aload 4
instanceof javax.naming.StringRefAddr
ifeq 8
6: aload 4
invokevirtual javax.naming.RefAddr.getType:()Ljava/lang/String;
ldc "URL"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
7: aload 2
iload 1
iinc 1 1
aload 4
invokevirtual javax.naming.RefAddr.getContent:()Ljava/lang/Object;
checkcast java.lang.String
aastore
end local 4 8: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 4
9: iload 1
ifne 13
10: new javax.naming.ConfigurationException
dup
11: ldc "Reference contains no valid addresses"
12: invokespecial javax.naming.ConfigurationException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
iload 1
aload 0
invokevirtual javax.naming.Reference.size:()I
if_icmpne 15
14: aload 2
areturn
15: StackMap locals:
StackMap stack:
iload 1
anewarray java.lang.String
astore 4
start local 4 16: aload 2
iconst_0
aload 4
iconst_0
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
17: 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 18 0 ref Ljavax/naming/Reference;
1 18 1 size I
2 18 2 urls [Ljava/lang/String;
3 18 3 addrs Ljava/util/Enumeration;
5 8 4 addr Ljavax/naming/RefAddr;
16 18 4 urls2 [Ljava/lang/String;
Exceptions:
throws javax.naming.NamingException
MethodParameters:
Name Flags
ref
}
SourceFile: "RegistryContextFactory.java"