public class org.apache.xml.utils.ObjectPool implements java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.xml.utils.ObjectPool
super_class: java.lang.Object
{
static final long serialVersionUID;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: -8519013691660936643
private final java.lang.Class objectType;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.ArrayList freeStack;
descriptor: Ljava/util/ArrayList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.Class);
descriptor: (Ljava/lang/Class;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.xml.utils.ObjectPool.objectType:Ljava/lang/Class;
2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.apache.xml.utils.ObjectPool.freeStack:Ljava/util/ArrayList;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/xml/utils/ObjectPool;
0 4 1 type Ljava/lang/Class;
MethodParameters:
Name Flags
type
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: aload 1
invokestatic org.apache.xml.utils.ObjectFactory.findClassLoader:()Ljava/lang/ClassLoader;
iconst_1
3: invokestatic org.apache.xml.utils.ObjectFactory.findProviderClass:(Ljava/lang/String;Ljava/lang/ClassLoader;Z)Ljava/lang/Class;
putfield org.apache.xml.utils.ObjectPool.objectType:Ljava/lang/Class;
4: goto 7
5: StackMap locals: org.apache.xml.utils.ObjectPool java.lang.String
StackMap stack: java.lang.ClassNotFoundException
astore 2
start local 2 6: new org.apache.xml.utils.WrappedRuntimeException
dup
aload 2
invokespecial org.apache.xml.utils.WrappedRuntimeException.<init>:(Ljava/lang/Exception;)V
athrow
end local 2 7: StackMap locals:
StackMap stack:
aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.apache.xml.utils.ObjectPool.freeStack:Ljava/util/ArrayList;
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/xml/utils/ObjectPool;
0 9 1 className Ljava/lang/String;
6 7 2 cnfe Ljava/lang/ClassNotFoundException;
Exception table:
from to target type
1 4 5 Class java.lang.ClassNotFoundException
MethodParameters:
Name Flags
className
public void <init>(java.lang.Class, int);
descriptor: (Ljava/lang/Class;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.xml.utils.ObjectPool.objectType:Ljava/lang/Class;
2: aload 0
new java.util.ArrayList
dup
iload 2
invokespecial java.util.ArrayList.<init>:(I)V
putfield org.apache.xml.utils.ObjectPool.freeStack:Ljava/util/ArrayList;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/xml/utils/ObjectPool;
0 4 1 type Ljava/lang/Class;
0 4 2 size I
MethodParameters:
Name Flags
type
size
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield org.apache.xml.utils.ObjectPool.objectType:Ljava/lang/Class;
2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.apache.xml.utils.ObjectPool.freeStack:Ljava/util/ArrayList;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/xml/utils/ObjectPool;
public synchronized java.lang.Object getInstanceIfFree();
descriptor: ()Ljava/lang/Object;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.xml.utils.ObjectPool.freeStack:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.isEmpty:()Z
ifne 3
1: aload 0
getfield org.apache.xml.utils.ObjectPool.freeStack:Ljava/util/ArrayList;
aload 0
getfield org.apache.xml.utils.ObjectPool.freeStack:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
iconst_1
isub
invokevirtual java.util.ArrayList.remove:(I)Ljava/lang/Object;
astore 1
start local 1 2: aload 1
areturn
end local 1 3: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/xml/utils/ObjectPool;
2 3 1 result Ljava/lang/Object;
public synchronized java.lang.Object getInstance();
descriptor: ()Ljava/lang/Object;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.xml.utils.ObjectPool.freeStack:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.isEmpty:()Z
ifeq 6
1: aload 0
getfield org.apache.xml.utils.ObjectPool.objectType:Ljava/lang/Class;
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
2: areturn
3: StackMap locals:
StackMap stack: java.lang.InstantiationException
pop
goto 5
4: StackMap locals:
StackMap stack: java.lang.IllegalAccessException
pop
5: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
ldc "ER_EXCEPTION_CREATING_POOL"
aconst_null
invokestatic org.apache.xml.res.XMLMessages.createXMLMessage:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.xml.utils.ObjectPool.freeStack:Ljava/util/ArrayList;
aload 0
getfield org.apache.xml.utils.ObjectPool.freeStack:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
iconst_1
isub
invokevirtual java.util.ArrayList.remove:(I)Ljava/lang/Object;
astore 1
start local 1 7: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/xml/utils/ObjectPool;
7 8 1 result Ljava/lang/Object;
Exception table:
from to target type
1 2 3 Class java.lang.InstantiationException
1 2 4 Class java.lang.IllegalAccessException
public synchronized void freeInstance(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.xml.utils.ObjectPool.freeStack:Ljava/util/ArrayList;
aload 1
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/xml/utils/ObjectPool;
0 2 1 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
}
SourceFile: "ObjectPool.java"