public class com.mongodb.client.MongoClientFactory implements javax.naming.spi.ObjectFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.mongodb.client.MongoClientFactory
super_class: java.lang.Object
{
private static final com.mongodb.diagnostics.logging.Logger LOGGER;
descriptor: Lcom/mongodb/diagnostics/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String CONNECTION_STRING;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "connectionString"
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "client"
invokestatic com.mongodb.diagnostics.logging.Loggers.getLogger:(Ljava/lang/String;)Lcom/mongodb/diagnostics/logging/Logger;
putstatic com.mongodb.client.MongoClientFactory.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
1: 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 Lcom/mongodb/client/MongoClientFactory;
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=7, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aconst_null
astore 5
start local 5 1: aload 4
ldc "connectionString"
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
instanceof java.lang.String
ifeq 3
2: aload 4
ldc "connectionString"
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 5
3: StackMap locals: java.lang.String
StackMap stack:
aload 5
ifnull 4
aload 5
invokevirtual java.lang.String.isEmpty:()Z
ifeq 17
4: StackMap locals:
StackMap stack:
getstatic com.mongodb.client.MongoClientFactory.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
ldc "No '%s' property in environment. Casting 'obj' to java.naming.Reference to look for a javax.naming.RefAddr with type equal to '%s'"
iconst_2
anewarray java.lang.Object
dup
iconst_0
5: ldc "connectionString"
aastore
dup
iconst_1
ldc "connectionString"
aastore
6: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface com.mongodb.diagnostics.logging.Logger.debug:(Ljava/lang/String;)V
7: aload 1
instanceof javax.naming.Reference
ifeq 17
8: aload 1
checkcast javax.naming.Reference
invokevirtual javax.naming.Reference.getAll:()Ljava/util/Enumeration;
astore 6
start local 6 9: goto 16
10: StackMap locals: java.util.Enumeration
StackMap stack:
aload 6
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast javax.naming.RefAddr
astore 7
start local 7 11: aload 7
ifnull 16
12: ldc "connectionString"
aload 7
invokevirtual javax.naming.RefAddr.getType:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 16
13: aload 7
invokevirtual javax.naming.RefAddr.getContent:()Ljava/lang/Object;
instanceof java.lang.String
ifeq 16
14: aload 7
invokevirtual javax.naming.RefAddr.getContent:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
15: goto 17
end local 7 16: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 10
end local 6 17: StackMap locals:
StackMap stack:
aload 5
ifnull 18
aload 5
invokevirtual java.lang.String.isEmpty:()Z
ifeq 19
18: StackMap locals:
StackMap stack:
new com.mongodb.MongoException
dup
ldc "Could not locate '%s' in either environment or obj"
iconst_1
anewarray java.lang.Object
dup
iconst_0
ldc "connectionString"
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial com.mongodb.MongoException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals:
StackMap stack:
aload 5
invokestatic com.mongodb.client.MongoClients.create:(Ljava/lang/String;)Lcom/mongodb/client/MongoClient;
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 20 0 this Lcom/mongodb/client/MongoClientFactory;
0 20 1 obj Ljava/lang/Object;
0 20 2 name Ljavax/naming/Name;
0 20 3 nameCtx Ljavax/naming/Context;
0 20 4 environment Ljava/util/Hashtable<**>;
1 20 5 connectionString Ljava/lang/String;
9 17 6 props Ljava/util/Enumeration<Ljavax/naming/RefAddr;>;
11 16 7 addr Ljavax/naming/RefAddr;
Signature: (Ljava/lang/Object;Ljavax/naming/Name;Ljavax/naming/Context;Ljava/util/Hashtable<**>;)Ljava/lang/Object;
MethodParameters:
Name Flags
obj final
name final
nameCtx final
environment final
}
SourceFile: "MongoClientFactory.java"