class javax.xml.ws.spi.FactoryFinder
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.xml.ws.spi.FactoryFinder
super_class: java.lang.Object
{
private static final java.util.logging.Logger logger;
descriptor: Ljava/util/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final javax.xml.ws.spi.ServiceLoaderUtil$ExceptionHandler<javax.xml.ws.WebServiceException> EXCEPTION_HANDLER;
descriptor: Ljavax/xml/ws/spi/ServiceLoaderUtil$ExceptionHandler;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljavax/xml/ws/spi/ServiceLoaderUtil$ExceptionHandler<Ljavax/xml/ws/WebServiceException;>;
private static final java.lang.String OSGI_SERVICE_LOADER_CLASS_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.sun.org.glassfish.hk2.osgiresourcelocator.ServiceLoader"
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "javax.xml.ws"
invokestatic java.util.logging.Logger.getLogger:(Ljava/lang/String;)Ljava/util/logging/Logger;
putstatic javax.xml.ws.spi.FactoryFinder.logger:Ljava/util/logging/Logger;
1: new javax.xml.ws.spi.FactoryFinder$1
dup
invokespecial javax.xml.ws.spi.FactoryFinder$1.<init>:()V
2: putstatic javax.xml.ws.spi.FactoryFinder.EXCEPTION_HANDLER:Ljavax/xml/ws/spi/ServiceLoaderUtil$ExceptionHandler;
3: return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
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 Ljavax/xml/ws/spi/FactoryFinder;
static <T> T find(java.lang.Class<T>, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: getstatic javax.xml.ws.spi.FactoryFinder.EXCEPTION_HANDLER:Ljavax/xml/ws/spi/ServiceLoaderUtil$ExceptionHandler;
invokestatic javax.xml.ws.spi.ServiceLoaderUtil.contextClassLoader:(Ljavax/xml/ws/spi/ServiceLoaderUtil$ExceptionHandler;)Ljava/lang/ClassLoader;
astore 2
start local 2 1: aload 0
getstatic javax.xml.ws.spi.FactoryFinder.logger:Ljava/util/logging/Logger;
getstatic javax.xml.ws.spi.FactoryFinder.EXCEPTION_HANDLER:Ljavax/xml/ws/spi/ServiceLoaderUtil$ExceptionHandler;
invokestatic javax.xml.ws.spi.ServiceLoaderUtil.firstByServiceLoader:(Ljava/lang/Class;Ljava/util/logging/Logger;Ljavax/xml/ws/spi/ServiceLoaderUtil$ExceptionHandler;)Ljava/lang/Object;
astore 3
start local 3 2: aload 3
ifnull 3
aload 3
areturn
3: StackMap locals: java.lang.ClassLoader java.lang.Object
StackMap stack:
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 4
start local 4 4: aload 4
aload 1
aload 2
invokestatic javax.xml.ws.spi.FactoryFinder.fromJDKProperties:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Object;
astore 3
5: aload 3
ifnull 6
aload 3
areturn
6: StackMap locals: java.lang.String
StackMap stack:
aload 4
aload 1
aload 2
invokestatic javax.xml.ws.spi.FactoryFinder.fromSystemProperty:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Object;
astore 3
7: aload 3
ifnull 8
aload 3
areturn
8: StackMap locals:
StackMap stack:
invokestatic javax.xml.ws.spi.FactoryFinder.isOsgi:()Z
ifeq 10
9: aload 4
invokestatic javax.xml.ws.spi.FactoryFinder.lookupUsingOSGiServiceLoader:(Ljava/lang/String;)Ljava/lang/Object;
areturn
10: StackMap locals:
StackMap stack:
aload 1
ifnonnull 14
11: new javax.xml.ws.WebServiceException
dup
12: new java.lang.StringBuilder
dup
ldc "Provider for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " cannot be found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aconst_null
13: invokespecial javax.xml.ws.WebServiceException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
14: StackMap locals:
StackMap stack:
aload 1
15: aload 1
aload 2
getstatic javax.xml.ws.spi.FactoryFinder.EXCEPTION_HANDLER:Ljavax/xml/ws/spi/ServiceLoaderUtil$ExceptionHandler;
16: invokestatic javax.xml.ws.spi.ServiceLoaderUtil.newInstance:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;Ljavax/xml/ws/spi/ServiceLoaderUtil$ExceptionHandler;)Ljava/lang/Object;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 factoryClass Ljava/lang/Class<TT;>;
0 17 1 fallbackClassName Ljava/lang/String;
1 17 2 classLoader Ljava/lang/ClassLoader;
2 17 3 provider TT;
4 17 4 factoryId Ljava/lang/String;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;Ljava/lang/String;)TT;
MethodParameters:
Name Flags
factoryClass
fallbackClassName
private static java.lang.Object fromSystemProperty(java.lang.String, java.lang.String, java.lang.ClassLoader);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 3
ifnull 7
2: aload 3
3: aload 1
aload 2
getstatic javax.xml.ws.spi.FactoryFinder.EXCEPTION_HANDLER:Ljavax/xml/ws/spi/ServiceLoaderUtil$ExceptionHandler;
4: invokestatic javax.xml.ws.spi.ServiceLoaderUtil.newInstance:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;Ljavax/xml/ws/spi/ServiceLoaderUtil$ExceptionHandler;)Ljava/lang/Object;
5: areturn
end local 3 6: StackMap locals:
StackMap stack: java.lang.SecurityException
pop
7: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 factoryId Ljava/lang/String;
0 8 1 fallbackClassName Ljava/lang/String;
0 8 2 classLoader Ljava/lang/ClassLoader;
1 6 3 systemProp Ljava/lang/String;
Exception table:
from to target type
0 5 6 Class java.lang.SecurityException
MethodParameters:
Name Flags
factoryId
fallbackClassName
classLoader
private static java.lang.Object fromJDKProperties(java.lang.String, java.lang.String, java.lang.ClassLoader);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: ldc "java.home"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 2: aload 4
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "conf"
aastore
dup
iconst_1
ldc "jaxws.properties"
aastore
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
3: aload 3
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 5
4: aload 4
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "lib"
aastore
dup
iconst_1
ldc "jaxws.properties"
aastore
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
5: StackMap locals: java.nio.file.Path java.lang.String
StackMap stack:
aload 3
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 25
6: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 5
start local 5 7: aconst_null
astore 6
aconst_null
astore 7
8: aload 3
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.newInputStream:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
astore 8
start local 8 9: aload 5
aload 8
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
10: aload 8
ifnull 16
aload 8
invokevirtual java.io.InputStream.close:()V
goto 16
StackMap locals: java.lang.String java.lang.String java.lang.ClassLoader java.nio.file.Path java.lang.String java.util.Properties java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.Throwable
11: astore 6
aload 8
ifnull 12
aload 8
invokevirtual java.io.InputStream.close:()V
end local 8 StackMap locals:
StackMap stack:
12: aload 6
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 7
aload 6
ifnonnull 14
aload 7
astore 6
goto 15
StackMap locals:
StackMap stack:
14: aload 6
aload 7
if_acmpeq 15
aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
15: aload 6
athrow
16: StackMap locals:
StackMap stack:
aload 5
aload 0
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 17: aload 6
18: aload 1
aload 2
getstatic javax.xml.ws.spi.FactoryFinder.EXCEPTION_HANDLER:Ljavax/xml/ws/spi/ServiceLoaderUtil$ExceptionHandler;
19: invokestatic javax.xml.ws.spi.ServiceLoaderUtil.newInstance:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;Ljavax/xml/ws/spi/ServiceLoaderUtil$ExceptionHandler;)Ljava/lang/Object;
20: areturn
end local 6 end local 5 end local 4 21: StackMap locals: java.lang.String java.lang.String java.lang.ClassLoader java.nio.file.Path
StackMap stack: java.lang.Exception
astore 4
start local 4 22: getstatic javax.xml.ws.spi.FactoryFinder.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.SEVERE:Ljava/util/logging/Level;
new java.lang.StringBuilder
dup
ldc "Error reading JAX-WS configuration from ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
23: ldc "] file. Check it is accessible and has correct format."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
24: invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
end local 4 25: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 factoryId Ljava/lang/String;
0 26 1 fallbackClassName Ljava/lang/String;
0 26 2 classLoader Ljava/lang/ClassLoader;
1 26 3 path Ljava/nio/file/Path;
2 21 4 JAVA_HOME Ljava/lang/String;
7 21 5 props Ljava/util/Properties;
9 12 8 inStream Ljava/io/InputStream;
17 21 6 factoryClassName Ljava/lang/String;
22 25 4 ignored Ljava/lang/Exception;
Exception table:
from to target type
9 10 11 any
8 13 13 any
1 20 21 Class java.lang.Exception
MethodParameters:
Name Flags
factoryId
fallbackClassName
classLoader
private static boolean isOsgi();
descriptor: ()Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "com.sun.org.glassfish.hk2.osgiresourcelocator.ServiceLoader"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
pop
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
pop
3: iconst_0
ireturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
0 1 2 Class java.lang.ClassNotFoundException
private static java.lang.Object lookupUsingOSGiServiceLoader(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=6, args_size=1
start local 0 0: aload 0
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 1
start local 1 1: iconst_1
anewarray java.lang.Class
dup
iconst_0
aload 1
aastore
astore 2
start local 2 2: ldc "com.sun.org.glassfish.hk2.osgiresourcelocator.ServiceLoader"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 3
start local 3 3: aload 3
ldc "lookupProviderInstances"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/Class;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 4
start local 4 4: aload 4
aconst_null
aload 2
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Iterable
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 5
start local 5 5: aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 6
aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
goto 7
StackMap locals: java.lang.String java.lang.Class java.lang.Class[] java.lang.Class java.lang.reflect.Method java.util.Iterator
StackMap stack:
6: aconst_null
StackMap locals:
StackMap stack: java.lang.Object
7: areturn
end local 5 end local 4 end local 3 end local 2 end local 1 8: StackMap locals: java.lang.String
StackMap stack: java.lang.Exception
pop
9: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 factoryId Ljava/lang/String;
1 8 1 serviceClass Ljava/lang/Class;
2 8 2 args [Ljava/lang/Class;
3 8 3 target Ljava/lang/Class;
4 8 4 m Ljava/lang/reflect/Method;
5 8 5 iter Ljava/util/Iterator;
Exception table:
from to target type
0 7 8 Class java.lang.Exception
MethodParameters:
Name Flags
factoryId
}
SourceFile: "FactoryFinder.java"
NestMembers:
javax.xml.ws.spi.FactoryFinder$1
InnerClasses:
javax.xml.ws.spi.FactoryFinder$1
abstract ExceptionHandler = javax.xml.ws.spi.ServiceLoaderUtil$ExceptionHandler of javax.xml.ws.spi.ServiceLoaderUtil