class org.glassfish.grizzly.utils.ServiceFinder$LazyIterator<T> implements java.util.Iterator<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.glassfish.grizzly.utils.ServiceFinder$LazyIterator
super_class: java.lang.Object
{
final java.lang.Class<T> service;
descriptor: Ljava/lang/Class;
flags: (0x0010) ACC_FINAL
Signature: Ljava/lang/Class<TT;>;
final java.lang.ClassLoader loader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0010) ACC_FINAL
java.util.Enumeration<java.net.URL> configs;
descriptor: Ljava/util/Enumeration;
flags: (0x0000)
Signature: Ljava/util/Enumeration<Ljava/net/URL;>;
java.util.Iterator<java.lang.String> pending;
descriptor: Ljava/util/Iterator;
flags: (0x0000)
Signature: Ljava/util/Iterator<Ljava/lang/String;>;
final java.util.Set<java.lang.String> returned;
descriptor: Ljava/util/Set;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
java.lang.String nextName;
descriptor: Ljava/lang/String;
flags: (0x0000)
java.net.URL currentConfig;
descriptor: Ljava/net/URL;
flags: (0x0000)
private void <init>(java.lang.Class<T>, java.lang.ClassLoader);
descriptor: (Ljava/lang/Class;Ljava/lang/ClassLoader;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 // org.glassfish.grizzly.utils.ServiceFinder$LazyIterator this
start local 1 // java.lang.Class service
start local 2 // java.lang.ClassLoader loader
0: .line 300
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 294
aload 0 /* this */
aconst_null
putfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.configs:Ljava/util/Enumeration;
2: .line 295
aload 0 /* this */
aconst_null
putfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.pending:Ljava/util/Iterator;
3: .line 296
aload 0 /* this */
new java.util.TreeSet
dup
invokespecial java.util.TreeSet.<init>:()V
putfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.returned:Ljava/util/Set;
4: .line 297
aload 0 /* this */
aconst_null
putfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.nextName:Ljava/lang/String;
5: .line 298
aload 0 /* this */
aconst_null
putfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.currentConfig:Ljava/net/URL;
6: .line 301
aload 0 /* this */
aload 1 /* service */
putfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.service:Ljava/lang/Class;
7: .line 302
aload 0 /* this */
aload 2 /* loader */
putfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.loader:Ljava/lang/ClassLoader;
8: .line 303
return
end local 2 // java.lang.ClassLoader loader
end local 1 // java.lang.Class service
end local 0 // org.glassfish.grizzly.utils.ServiceFinder$LazyIterator this
LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/glassfish/grizzly/utils/ServiceFinder$LazyIterator<TT;>;
0 9 1 service Ljava/lang/Class<TT;>;
0 9 2 loader Ljava/lang/ClassLoader;
Signature: (Ljava/lang/Class<TT;>;Ljava/lang/ClassLoader;)V
MethodParameters:
Name Flags
service
loader
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 // org.glassfish.grizzly.utils.ServiceFinder$LazyIterator this
0: .line 307
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.nextName:Ljava/lang/String;
ifnull 2
1: .line 308
iconst_1
ireturn
2: .line 310
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.configs:Ljava/util/Enumeration;
ifnonnull 16
3: .line 312
new java.lang.StringBuilder
dup
ldc "META-INF/services/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.service:Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1 /* fullName */
start local 1 // java.lang.String fullName
4: .line 313
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.loader:Ljava/lang/ClassLoader;
ifnonnull 7
5: .line 314
aload 0 /* this */
aload 1 /* fullName */
invokestatic java.lang.ClassLoader.getSystemResources:(Ljava/lang/String;)Ljava/util/Enumeration;
putfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.configs:Ljava/util/Enumeration;
6: .line 315
goto 16
7: .line 316
StackMap locals: java.lang.String
StackMap stack:
aload 0 /* this */
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.loader:Ljava/lang/ClassLoader;
aload 1 /* fullName */
invokevirtual java.lang.ClassLoader.getResources:(Ljava/lang/String;)Ljava/util/Enumeration;
putfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.configs:Ljava/util/Enumeration;
end local 1 // java.lang.String fullName
8: .line 318
goto 16
StackMap locals: org.glassfish.grizzly.utils.ServiceFinder$LazyIterator
StackMap stack: java.io.IOException
9: astore 1 /* x */
start local 1 // java.io.IOException x
10: .line 319
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.service:Ljava/lang/Class;
new java.lang.StringBuilder
dup
ldc ": "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1 /* x */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.glassfish.grizzly.utils.ServiceFinder.fail:(Ljava/lang/Class;Ljava/lang/String;)V
end local 1 // java.io.IOException x
11: .line 322
goto 16
12: .line 323
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.configs:Ljava/util/Enumeration;
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 14
13: .line 324
iconst_0
ireturn
14: .line 326
StackMap locals:
StackMap stack:
aload 0 /* this */
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.configs:Ljava/util/Enumeration;
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.net.URL
putfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.currentConfig:Ljava/net/URL;
15: .line 327
aload 0 /* this */
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.service:Ljava/lang/Class;
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.currentConfig:Ljava/net/URL;
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.returned:Ljava/util/Set;
invokestatic org.glassfish.grizzly.utils.ServiceFinder.parse:(Ljava/lang/Class;Ljava/net/URL;Ljava/util/Set;)Ljava/util/Iterator;
putfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.pending:Ljava/util/Iterator;
16: .line 322
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.pending:Ljava/util/Iterator;
ifnull 12
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.pending:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 12
17: .line 329
aload 0 /* this */
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.pending:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
putfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.nextName:Ljava/lang/String;
18: .line 330
iconst_1
ireturn
end local 0 // org.glassfish.grizzly.utils.ServiceFinder$LazyIterator this
LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/glassfish/grizzly/utils/ServiceFinder$LazyIterator<TT;>;
4 8 1 fullName Ljava/lang/String;
10 11 1 x Ljava/io/IOException;
Exception table:
from to target type
3 8 9 Class java.io.IOException
Exceptions:
throws org.glassfish.grizzly.utils.ServiceConfigurationError
public T next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 // org.glassfish.grizzly.utils.ServiceFinder$LazyIterator this
0: .line 335
aload 0 /* this */
invokevirtual org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.hasNext:()Z
ifne 2
1: .line 336
new java.util.NoSuchElementException
dup
invokespecial java.util.NoSuchElementException.<init>:()V
athrow
2: .line 338
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.nextName:Ljava/lang/String;
astore 1 /* cn */
start local 1 // java.lang.String cn
3: .line 339
aload 0 /* this */
aconst_null
putfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.nextName:Ljava/lang/String;
4: .line 341
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.service:Ljava/lang/Class;
aload 1 /* cn */
iconst_1
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.loader:Ljava/lang/ClassLoader;
invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
5: areturn
6: .line 342
StackMap locals: org.glassfish.grizzly.utils.ServiceFinder$LazyIterator java.lang.String
StackMap stack: java.lang.ClassNotFoundException
pop
7: .line 343
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.service:Ljava/lang/Class;
new java.lang.StringBuilder
dup
ldc "Provider "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1 /* cn */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " is specified in "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.currentConfig:Ljava/net/URL;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " but not found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.glassfish.grizzly.utils.ServiceFinder.fail:(Ljava/lang/Class;Ljava/lang/String;)V
goto 10
8: .line 344
StackMap locals:
StackMap stack: java.lang.Exception
astore 2 /* x */
start local 2 // java.lang.Exception x
9: .line 345
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.service:Ljava/lang/Class;
new java.lang.StringBuilder
dup
ldc "Provider "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1 /* cn */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " is specified in "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0 /* this */
getfield org.glassfish.grizzly.utils.ServiceFinder$LazyIterator.currentConfig:Ljava/net/URL;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "but could not be instantiated: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2 /* x */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2 /* x */
invokestatic org.glassfish.grizzly.utils.ServiceFinder.fail:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Throwable;)V
end local 2 // java.lang.Exception x
10: .line 347
StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 // java.lang.String cn
end local 0 // org.glassfish.grizzly.utils.ServiceFinder$LazyIterator this
LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/glassfish/grizzly/utils/ServiceFinder$LazyIterator<TT;>;
3 11 1 cn Ljava/lang/String;
9 10 2 x Ljava/lang/Exception;
Exception table:
from to target type
4 5 6 Class java.lang.ClassNotFoundException
4 5 8 Class java.lang.Exception
Exceptions:
throws org.glassfish.grizzly.utils.ServiceConfigurationError
Signature: ()TT;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 // org.glassfish.grizzly.utils.ServiceFinder$LazyIterator this
0: .line 352
new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 0 // org.glassfish.grizzly.utils.ServiceFinder$LazyIterator this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/utils/ServiceFinder$LazyIterator<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Iterator<TT;>;
SourceFile: "ServiceFinder.java"
NestHost: org.glassfish.grizzly.utils.ServiceFinder
InnerClasses:
private LazyIterator = org.glassfish.grizzly.utils.ServiceFinder$LazyIterator of org.glassfish.grizzly.utils.ServiceFinder