public abstract class org.hibernate.service.internal.AbstractServiceRegistryImpl implements org.hibernate.service.spi.ServiceRegistryImplementor, org.hibernate.service.spi.ServiceBinding$ServiceLifecycleOwner
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.hibernate.service.internal.AbstractServiceRegistryImpl
super_class: java.lang.Object
{
private static final org.hibernate.internal.CoreMessageLogger log;
descriptor: Lorg/hibernate/internal/CoreMessageLogger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final java.lang.String ALLOW_CRAWLING;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "hibernate.service.allow_crawling"
private final org.hibernate.service.spi.ServiceRegistryImplementor parent;
descriptor: Lorg/hibernate/service/spi/ServiceRegistryImplementor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean allowCrawling;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.ConcurrentMap<java.lang.Class, org.hibernate.service.spi.ServiceBinding> serviceBindingMap;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/Class;Lorg/hibernate/service/spi/ServiceBinding;>;
private final java.util.concurrent.ConcurrentMap<java.lang.Class, java.lang.Class> roleXref;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/Class;Ljava/lang/Class;>;
private final java.util.concurrent.ConcurrentMap<java.lang.Class, org.hibernate.service.Service> initializedServiceByRole;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/Class;Lorg/hibernate/service/Service;>;
private final java.util.List<org.hibernate.service.spi.ServiceBinding> serviceBindingList;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/hibernate/service/spi/ServiceBinding;>;
private boolean autoCloseRegistry;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.util.Set<org.hibernate.service.spi.ServiceRegistryImplementor> childRegistries;
descriptor: Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Set<Lorg/hibernate/service/spi/ServiceRegistryImplementor;>;
private final java.util.concurrent.atomic.AtomicBoolean active;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
invokestatic org.hibernate.internal.CoreLogging.messageLogger:(Ljava/lang/Class;)Lorg/hibernate/internal/CoreMessageLogger;
putstatic org.hibernate.service.internal.AbstractServiceRegistryImpl.log:Lorg/hibernate/internal/CoreMessageLogger;
1: return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokespecial org.hibernate.service.internal.AbstractServiceRegistryImpl.<init>:(Lorg/hibernate/service/spi/ServiceRegistryImplementor;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
protected void <init>(boolean);
descriptor: (Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
iload 1
invokespecial org.hibernate.service.internal.AbstractServiceRegistryImpl.<init>:(Lorg/hibernate/service/spi/ServiceRegistryImplementor;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 2 1 autoCloseRegistry Z
MethodParameters:
Name Flags
autoCloseRegistry
protected void <init>(org.hibernate.service.spi.ServiceRegistryImplementor);
descriptor: (Lorg/hibernate/service/spi/ServiceRegistryImplementor;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokespecial org.hibernate.service.internal.AbstractServiceRegistryImpl.<init>:(Lorg/hibernate/service/spi/ServiceRegistryImplementor;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 2 1 parent Lorg/hibernate/service/spi/ServiceRegistryImplementor;
MethodParameters:
Name Flags
parent
protected void <init>(org.hibernate.service.spi.ServiceRegistryImplementor, boolean);
descriptor: (Lorg/hibernate/service/spi/ServiceRegistryImplementor;Z)V
flags: (0x0004) ACC_PROTECTED
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
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.hibernate.service.internal.AbstractServiceRegistryImpl.serviceBindingMap:Ljava/util/concurrent/ConcurrentMap;
2: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.hibernate.service.internal.AbstractServiceRegistryImpl.roleXref:Ljava/util/concurrent/ConcurrentMap;
3: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.hibernate.service.internal.AbstractServiceRegistryImpl.initializedServiceByRole:Ljava/util/concurrent/ConcurrentMap;
4: aload 0
bipush 20
invokestatic org.hibernate.internal.util.collections.CollectionHelper.arrayList:(I)Ljava/util/ArrayList;
putfield org.hibernate.service.internal.AbstractServiceRegistryImpl.serviceBindingList:Ljava/util/List;
5: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
iconst_1
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:(Z)V
putfield org.hibernate.service.internal.AbstractServiceRegistryImpl.active:Ljava/util/concurrent/atomic/AtomicBoolean;
6: aload 0
aload 1
putfield org.hibernate.service.internal.AbstractServiceRegistryImpl.parent:Lorg/hibernate/service/spi/ServiceRegistryImplementor;
7: aload 0
ldc "hibernate.service.allow_crawling"
invokestatic org.hibernate.cfg.Environment.getProperties:()Ljava/util/Properties;
iconst_1
invokestatic org.hibernate.internal.util.config.ConfigurationHelper.getBoolean:(Ljava/lang/String;Ljava/util/Map;Z)Z
putfield org.hibernate.service.internal.AbstractServiceRegistryImpl.allowCrawling:Z
8: aload 0
iload 2
putfield org.hibernate.service.internal.AbstractServiceRegistryImpl.autoCloseRegistry:Z
9: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.parent:Lorg/hibernate/service/spi/ServiceRegistryImplementor;
aload 0
invokeinterface org.hibernate.service.spi.ServiceRegistryImplementor.registerChild:(Lorg/hibernate/service/spi/ServiceRegistryImplementor;)V
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 11 1 parent Lorg/hibernate/service/spi/ServiceRegistryImplementor;
0 11 2 autoCloseRegistry Z
MethodParameters:
Name Flags
parent
autoCloseRegistry
public void <init>(org.hibernate.boot.registry.BootstrapServiceRegistry);
descriptor: (Lorg/hibernate/boot/registry/BootstrapServiceRegistry;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokespecial org.hibernate.service.internal.AbstractServiceRegistryImpl.<init>:(Lorg/hibernate/boot/registry/BootstrapServiceRegistry;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 2 1 bootstrapServiceRegistry Lorg/hibernate/boot/registry/BootstrapServiceRegistry;
MethodParameters:
Name Flags
bootstrapServiceRegistry
public void <init>(org.hibernate.boot.registry.BootstrapServiceRegistry, boolean);
descriptor: (Lorg/hibernate/boot/registry/BootstrapServiceRegistry;Z)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
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.hibernate.service.internal.AbstractServiceRegistryImpl.serviceBindingMap:Ljava/util/concurrent/ConcurrentMap;
2: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.hibernate.service.internal.AbstractServiceRegistryImpl.roleXref:Ljava/util/concurrent/ConcurrentMap;
3: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.hibernate.service.internal.AbstractServiceRegistryImpl.initializedServiceByRole:Ljava/util/concurrent/ConcurrentMap;
4: aload 0
bipush 20
invokestatic org.hibernate.internal.util.collections.CollectionHelper.arrayList:(I)Ljava/util/ArrayList;
putfield org.hibernate.service.internal.AbstractServiceRegistryImpl.serviceBindingList:Ljava/util/List;
5: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
iconst_1
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:(Z)V
putfield org.hibernate.service.internal.AbstractServiceRegistryImpl.active:Ljava/util/concurrent/atomic/AtomicBoolean;
6: ldc Lorg/hibernate/service/spi/ServiceRegistryImplementor;
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifne 8
7: new java.lang.IllegalArgumentException
dup
ldc "ServiceRegistry parent needs to implement ServiceRegistryImplementor"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: org.hibernate.service.internal.AbstractServiceRegistryImpl org.hibernate.boot.registry.BootstrapServiceRegistry int
StackMap stack:
aload 0
aload 1
checkcast org.hibernate.service.spi.ServiceRegistryImplementor
putfield org.hibernate.service.internal.AbstractServiceRegistryImpl.parent:Lorg/hibernate/service/spi/ServiceRegistryImplementor;
9: aload 0
ldc "hibernate.service.allow_crawling"
invokestatic org.hibernate.cfg.Environment.getProperties:()Ljava/util/Properties;
iconst_1
invokestatic org.hibernate.internal.util.config.ConfigurationHelper.getBoolean:(Ljava/lang/String;Ljava/util/Map;Z)Z
putfield org.hibernate.service.internal.AbstractServiceRegistryImpl.allowCrawling:Z
10: aload 0
iload 2
putfield org.hibernate.service.internal.AbstractServiceRegistryImpl.autoCloseRegistry:Z
11: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.parent:Lorg/hibernate/service/spi/ServiceRegistryImplementor;
aload 0
invokeinterface org.hibernate.service.spi.ServiceRegistryImplementor.registerChild:(Lorg/hibernate/service/spi/ServiceRegistryImplementor;)V
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 13 1 bootstrapServiceRegistry Lorg/hibernate/boot/registry/BootstrapServiceRegistry;
0 13 2 autoCloseRegistry Z
MethodParameters:
Name Flags
bootstrapServiceRegistry
autoCloseRegistry
protected <R extends org.hibernate.service.Service> void createServiceBinding(org.hibernate.service.spi.ServiceInitiator<R>);
descriptor: (Lorg/hibernate/service/spi/ServiceInitiator;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new org.hibernate.service.spi.ServiceBinding
dup
aload 0
aload 1
invokespecial org.hibernate.service.spi.ServiceBinding.<init>:(Lorg/hibernate/service/spi/ServiceBinding$ServiceLifecycleOwner;Lorg/hibernate/service/spi/ServiceInitiator;)V
astore 2
start local 2 1: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.serviceBindingMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface org.hibernate.service.spi.ServiceInitiator.getServiceInitiated:()Ljava/lang/Class;
aload 2
invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 3 1 initiator Lorg/hibernate/service/spi/ServiceInitiator<TR;>;
1 3 2 serviceBinding Lorg/hibernate/service/spi/ServiceBinding;
Signature: <R::Lorg/hibernate/service/Service;>(Lorg/hibernate/service/spi/ServiceInitiator<TR;>;)V
MethodParameters:
Name Flags
initiator
protected <R extends org.hibernate.service.Service> void createServiceBinding(org.hibernate.service.internal.ProvidedService<R>);
descriptor: (Lorg/hibernate/service/internal/ProvidedService;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.hibernate.service.internal.ProvidedService.getServiceRole:()Ljava/lang/Class;
iconst_0
invokevirtual org.hibernate.service.internal.AbstractServiceRegistryImpl.locateServiceBinding:(Ljava/lang/Class;Z)Lorg/hibernate/service/spi/ServiceBinding;
astore 2
start local 2 1: aload 2
ifnonnull 4
2: new org.hibernate.service.spi.ServiceBinding
dup
aload 0
aload 1
invokevirtual org.hibernate.service.internal.ProvidedService.getServiceRole:()Ljava/lang/Class;
aload 1
invokevirtual org.hibernate.service.internal.ProvidedService.getService:()Ljava/lang/Object;
checkcast org.hibernate.service.Service
invokespecial org.hibernate.service.spi.ServiceBinding.<init>:(Lorg/hibernate/service/spi/ServiceBinding$ServiceLifecycleOwner;Ljava/lang/Class;Lorg/hibernate/service/Service;)V
astore 2
3: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.serviceBindingMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokevirtual org.hibernate.service.internal.ProvidedService.getServiceRole:()Ljava/lang/Class;
aload 2
invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: StackMap locals: org.hibernate.service.spi.ServiceBinding
StackMap stack:
aload 0
aload 2
aload 1
invokevirtual org.hibernate.service.internal.ProvidedService.getService:()Ljava/lang/Object;
checkcast org.hibernate.service.Service
invokevirtual org.hibernate.service.internal.AbstractServiceRegistryImpl.registerService:(Lorg/hibernate/service/spi/ServiceBinding;Lorg/hibernate/service/Service;)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 6 1 providedService Lorg/hibernate/service/internal/ProvidedService<TR;>;
1 6 2 binding Lorg/hibernate/service/spi/ServiceBinding<TR;>;
Signature: <R::Lorg/hibernate/service/Service;>(Lorg/hibernate/service/internal/ProvidedService<TR;>;)V
MethodParameters:
Name Flags
providedService
protected void visitServiceBindings(java.util.function.Consumer<org.hibernate.service.spi.ServiceBinding>);
descriptor: (Ljava/util/function/Consumer;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.serviceBindingList:Ljava/util/List;
aload 1
invokeinterface java.util.List.forEach:(Ljava/util/function/Consumer;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 2 1 action Ljava/util/function/Consumer<Lorg/hibernate/service/spi/ServiceBinding;>;
Signature: (Ljava/util/function/Consumer<Lorg/hibernate/service/spi/ServiceBinding;>;)V
MethodParameters:
Name Flags
action
public org.hibernate.service.ServiceRegistry getParentServiceRegistry();
descriptor: ()Lorg/hibernate/service/ServiceRegistry;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.parent:Lorg/hibernate/service/spi/ServiceRegistryImplementor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
public <R extends org.hibernate.service.Service> org.hibernate.service.spi.ServiceBinding<R> locateServiceBinding(java.lang.Class<R>);
descriptor: (Ljava/lang/Class;)Lorg/hibernate/service/spi/ServiceBinding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokevirtual org.hibernate.service.internal.AbstractServiceRegistryImpl.locateServiceBinding:(Ljava/lang/Class;Z)Lorg/hibernate/service/spi/ServiceBinding;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 1 1 serviceRole Ljava/lang/Class<TR;>;
Signature: <R::Lorg/hibernate/service/Service;>(Ljava/lang/Class<TR;>;)Lorg/hibernate/service/spi/ServiceBinding<TR;>;
MethodParameters:
Name Flags
serviceRole
protected <R extends org.hibernate.service.Service> org.hibernate.service.spi.ServiceBinding<R> locateServiceBinding(java.lang.Class<R>, boolean);
descriptor: (Ljava/lang/Class;Z)Lorg/hibernate/service/spi/ServiceBinding;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.serviceBindingMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.hibernate.service.spi.ServiceBinding
astore 3
start local 3 1: aload 3
ifnonnull 3
iload 2
ifeq 3
aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.parent:Lorg/hibernate/service/spi/ServiceRegistryImplementor;
ifnull 3
2: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.parent:Lorg/hibernate/service/spi/ServiceRegistryImplementor;
aload 1
invokeinterface org.hibernate.service.spi.ServiceRegistryImplementor.locateServiceBinding:(Ljava/lang/Class;)Lorg/hibernate/service/spi/ServiceBinding;
astore 3
3: StackMap locals: org.hibernate.service.spi.ServiceBinding
StackMap stack:
aload 3
ifnull 5
4: aload 3
areturn
5: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.allowCrawling:Z
ifne 7
6: aconst_null
areturn
7: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.roleXref:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Class
astore 4
start local 4 8: aload 4
ifnull 10
9: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.serviceBindingMap:Ljava/util/concurrent/ConcurrentMap;
aload 4
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.hibernate.service.spi.ServiceBinding
areturn
10: StackMap locals: java.lang.Class
StackMap stack:
aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.serviceBindingMap:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 6
goto 20
StackMap locals: org.hibernate.service.internal.AbstractServiceRegistryImpl java.lang.Class int org.hibernate.service.spi.ServiceBinding java.lang.Class top java.util.Iterator
StackMap stack:
11: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.hibernate.service.spi.ServiceBinding
astore 5
start local 5 12: aload 1
aload 5
invokevirtual org.hibernate.service.spi.ServiceBinding.getServiceRole:()Ljava/lang/Class;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 16
13: getstatic org.hibernate.service.internal.AbstractServiceRegistryImpl.log:Lorg/hibernate/internal/CoreMessageLogger;
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aload 5
invokevirtual org.hibernate.service.spi.ServiceBinding.getServiceRole:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokeinterface org.hibernate.internal.CoreMessageLogger.alternateServiceRole:(Ljava/lang/String;Ljava/lang/String;)V
14: aload 0
aload 1
aload 5
invokevirtual org.hibernate.service.spi.ServiceBinding.getServiceRole:()Ljava/lang/Class;
invokevirtual org.hibernate.service.internal.AbstractServiceRegistryImpl.registerAlternate:(Ljava/lang/Class;Ljava/lang/Class;)V
15: aload 5
areturn
16: StackMap locals: org.hibernate.service.internal.AbstractServiceRegistryImpl java.lang.Class int org.hibernate.service.spi.ServiceBinding java.lang.Class org.hibernate.service.spi.ServiceBinding java.util.Iterator
StackMap stack:
aload 5
invokevirtual org.hibernate.service.spi.ServiceBinding.getService:()Lorg/hibernate/service/Service;
ifnull 20
aload 1
aload 5
invokevirtual org.hibernate.service.spi.ServiceBinding.getService:()Lorg/hibernate/service/Service;
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 20
17: getstatic org.hibernate.service.internal.AbstractServiceRegistryImpl.log:Lorg/hibernate/internal/CoreMessageLogger;
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aload 5
invokevirtual org.hibernate.service.spi.ServiceBinding.getServiceRole:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokeinterface org.hibernate.internal.CoreMessageLogger.alternateServiceRole:(Ljava/lang/String;Ljava/lang/String;)V
18: aload 0
aload 1
aload 5
invokevirtual org.hibernate.service.spi.ServiceBinding.getServiceRole:()Ljava/lang/Class;
invokevirtual org.hibernate.service.internal.AbstractServiceRegistryImpl.registerAlternate:(Ljava/lang/Class;Ljava/lang/Class;)V
19: aload 5
areturn
end local 5 20: StackMap locals: org.hibernate.service.internal.AbstractServiceRegistryImpl java.lang.Class int org.hibernate.service.spi.ServiceBinding java.lang.Class top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
21: aconst_null
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 22 1 serviceRole Ljava/lang/Class<TR;>;
0 22 2 checkParent Z
1 22 3 serviceBinding Lorg/hibernate/service/spi/ServiceBinding<TR;>;
8 22 4 alternative Ljava/lang/Class;
12 20 5 binding Lorg/hibernate/service/spi/ServiceBinding;
Signature: <R::Lorg/hibernate/service/Service;>(Ljava/lang/Class<TR;>;Z)Lorg/hibernate/service/spi/ServiceBinding<TR;>;
MethodParameters:
Name Flags
serviceRole
checkParent
private void registerAlternate(java.lang.Class, java.lang.Class);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.roleXref:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 2
invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 2 1 alternate Ljava/lang/Class;
0 2 2 target Ljava/lang/Class;
MethodParameters:
Name Flags
alternate
target
public <R extends org.hibernate.service.Service> R getService(java.lang.Class<R>);
descriptor: (Ljava/lang/Class;)Lorg/hibernate/service/Service;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.initializedServiceByRole:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.hibernate.service.Service
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
areturn
3: StackMap locals: org.hibernate.service.Service
StackMap stack:
aload 0
dup
astore 3
monitorenter
4: aload 1
aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.initializedServiceByRole:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.hibernate.service.Service
astore 2
5: aload 2
ifnull 8
6: aload 2
aload 3
monitorexit
7: areturn
8: StackMap locals: org.hibernate.service.internal.AbstractServiceRegistryImpl
StackMap stack:
aload 0
aload 1
invokevirtual org.hibernate.service.internal.AbstractServiceRegistryImpl.locateServiceBinding:(Ljava/lang/Class;)Lorg/hibernate/service/spi/ServiceBinding;
astore 4
start local 4 9: aload 4
ifnonnull 11
10: new org.hibernate.service.UnknownServiceException
dup
aload 1
invokespecial org.hibernate.service.UnknownServiceException.<init>:(Ljava/lang/Class;)V
athrow
11: StackMap locals: org.hibernate.service.spi.ServiceBinding
StackMap stack:
aload 4
invokevirtual org.hibernate.service.spi.ServiceBinding.getService:()Lorg/hibernate/service/Service;
astore 2
12: aload 2
ifnonnull 14
13: aload 0
aload 4
invokevirtual org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService:(Lorg/hibernate/service/spi/ServiceBinding;)Lorg/hibernate/service/Service;
astore 2
14: StackMap locals:
StackMap stack:
aload 2
ifnull 16
15: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.initializedServiceByRole:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 2
invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
16: StackMap locals:
StackMap stack:
aload 2
aload 3
monitorexit
17: areturn
end local 4 18: StackMap locals: org.hibernate.service.internal.AbstractServiceRegistryImpl java.lang.Class org.hibernate.service.Service org.hibernate.service.internal.AbstractServiceRegistryImpl
StackMap stack: java.lang.Throwable
aload 3
monitorexit
19: athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 20 1 serviceRole Ljava/lang/Class<TR;>;
1 20 2 service TR;
9 18 4 serviceBinding Lorg/hibernate/service/spi/ServiceBinding<TR;>;
Exception table:
from to target type
4 7 18 any
8 17 18 any
18 19 18 any
Signature: <R::Lorg/hibernate/service/Service;>(Ljava/lang/Class<TR;>;)TR;
MethodParameters:
Name Flags
serviceRole
protected <R extends org.hibernate.service.Service> void registerService(org.hibernate.service.spi.ServiceBinding<R>, );
descriptor: (Lorg/hibernate/service/spi/ServiceBinding;Lorg/hibernate/service/Service;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokevirtual org.hibernate.service.spi.ServiceBinding.setService:(Lorg/hibernate/service/Service;)V
1: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.serviceBindingList:Ljava/util/List;
dup
astore 3
monitorenter
2: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.serviceBindingList:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: aload 3
monitorexit
4: goto 7
StackMap locals: org.hibernate.service.internal.AbstractServiceRegistryImpl org.hibernate.service.spi.ServiceBinding org.hibernate.service.Service java.util.List
StackMap stack: java.lang.Throwable
5: aload 3
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 8 1 serviceBinding Lorg/hibernate/service/spi/ServiceBinding<TR;>;
0 8 2 service TR;
Exception table:
from to target type
2 4 5 any
5 6 5 any
Signature: <R::Lorg/hibernate/service/Service;>(Lorg/hibernate/service/spi/ServiceBinding<TR;>;TR;)V
MethodParameters:
Name Flags
serviceBinding
service
private <R extends org.hibernate.service.Service> R initializeService(org.hibernate.service.spi.ServiceBinding<R>);
descriptor: (Lorg/hibernate/service/spi/ServiceBinding;)Lorg/hibernate/service/Service;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.hibernate.service.internal.AbstractServiceRegistryImpl.log:Lorg/hibernate/internal/CoreMessageLogger;
invokeinterface org.hibernate.internal.CoreMessageLogger.isTraceEnabled:()Z
ifeq 2
1: getstatic org.hibernate.service.internal.AbstractServiceRegistryImpl.log:Lorg/hibernate/internal/CoreMessageLogger;
ldc "Initializing service [role={0}]"
aload 1
invokevirtual org.hibernate.service.spi.ServiceBinding.getServiceRole:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokeinterface org.hibernate.internal.CoreMessageLogger.tracev:(Ljava/lang/String;Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.hibernate.service.internal.AbstractServiceRegistryImpl.createService:(Lorg/hibernate/service/spi/ServiceBinding;)Lorg/hibernate/service/Service;
astore 2
start local 2 3: aload 2
ifnonnull 5
4: aconst_null
areturn
5: StackMap locals: org.hibernate.service.Service
StackMap stack:
aload 1
invokevirtual org.hibernate.service.spi.ServiceBinding.getLifecycleOwner:()Lorg/hibernate/service/spi/ServiceBinding$ServiceLifecycleOwner;
aload 1
invokeinterface org.hibernate.service.spi.ServiceBinding$ServiceLifecycleOwner.injectDependencies:(Lorg/hibernate/service/spi/ServiceBinding;)V
6: aload 1
invokevirtual org.hibernate.service.spi.ServiceBinding.getLifecycleOwner:()Lorg/hibernate/service/spi/ServiceBinding$ServiceLifecycleOwner;
aload 1
invokeinterface org.hibernate.service.spi.ServiceBinding$ServiceLifecycleOwner.configureService:(Lorg/hibernate/service/spi/ServiceBinding;)V
7: aload 1
invokevirtual org.hibernate.service.spi.ServiceBinding.getLifecycleOwner:()Lorg/hibernate/service/spi/ServiceBinding$ServiceLifecycleOwner;
aload 1
invokeinterface org.hibernate.service.spi.ServiceBinding$ServiceLifecycleOwner.startService:(Lorg/hibernate/service/spi/ServiceBinding;)V
8: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 9 1 serviceBinding Lorg/hibernate/service/spi/ServiceBinding<TR;>;
3 9 2 service TR;
Signature: <R::Lorg/hibernate/service/Service;>(Lorg/hibernate/service/spi/ServiceBinding<TR;>;)TR;
MethodParameters:
Name Flags
serviceBinding
protected <R extends org.hibernate.service.Service> R createService(org.hibernate.service.spi.ServiceBinding<R>);
descriptor: (Lorg/hibernate/service/spi/ServiceBinding;)Lorg/hibernate/service/Service;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.hibernate.service.spi.ServiceBinding.getServiceInitiator:()Lorg/hibernate/service/spi/ServiceInitiator;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: new org.hibernate.service.UnknownServiceException
dup
aload 1
invokevirtual org.hibernate.service.spi.ServiceBinding.getServiceRole:()Ljava/lang/Class;
invokespecial org.hibernate.service.UnknownServiceException.<init>:(Ljava/lang/Class;)V
athrow
3: StackMap locals: org.hibernate.service.spi.ServiceInitiator
StackMap stack:
aload 1
invokevirtual org.hibernate.service.spi.ServiceBinding.getLifecycleOwner:()Lorg/hibernate/service/spi/ServiceBinding$ServiceLifecycleOwner;
aload 2
invokeinterface org.hibernate.service.spi.ServiceBinding$ServiceLifecycleOwner.initiateService:(Lorg/hibernate/service/spi/ServiceInitiator;)Lorg/hibernate/service/Service;
astore 3
start local 3 4: aload 3
ifnull 6
5: aload 0
aload 1
aload 3
invokevirtual org.hibernate.service.internal.AbstractServiceRegistryImpl.registerService:(Lorg/hibernate/service/spi/ServiceBinding;Lorg/hibernate/service/Service;)V
6: StackMap locals: org.hibernate.service.Service
StackMap stack:
aload 3
7: areturn
end local 3 8: StackMap locals: org.hibernate.service.internal.AbstractServiceRegistryImpl org.hibernate.service.spi.ServiceBinding org.hibernate.service.spi.ServiceInitiator
StackMap stack: org.hibernate.service.spi.ServiceException
astore 3
start local 3 9: aload 3
athrow
end local 3 10: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 11: new org.hibernate.service.spi.ServiceException
dup
new java.lang.StringBuilder
dup
ldc "Unable to create requested service ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual org.hibernate.service.spi.ServiceBinding.getServiceRole:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokespecial org.hibernate.service.spi.ServiceException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 12 1 serviceBinding Lorg/hibernate/service/spi/ServiceBinding<TR;>;
1 12 2 serviceInitiator Lorg/hibernate/service/spi/ServiceInitiator<TR;>;
4 8 3 service TR;
9 10 3 e Lorg/hibernate/service/spi/ServiceException;
11 12 3 e Ljava/lang/Exception;
Exception table:
from to target type
3 7 8 Class org.hibernate.service.spi.ServiceException
3 7 10 Class java.lang.Exception
Signature: <R::Lorg/hibernate/service/Service;>(Lorg/hibernate/service/spi/ServiceBinding<TR;>;)TR;
MethodParameters:
Name Flags
serviceBinding
public <R extends org.hibernate.service.Service> void injectDependencies(org.hibernate.service.spi.ServiceBinding<R>);
descriptor: (Lorg/hibernate/service/spi/ServiceBinding;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.hibernate.service.spi.ServiceBinding.getService:()Lorg/hibernate/service/Service;
astore 2
start local 2 1: aload 0
aload 2
invokevirtual org.hibernate.service.internal.AbstractServiceRegistryImpl.applyInjections:(Lorg/hibernate/service/Service;)V
2: ldc Lorg/hibernate/service/spi/ServiceRegistryAwareService;
aload 2
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 4
3: aload 2
checkcast org.hibernate.service.spi.ServiceRegistryAwareService
aload 0
invokeinterface org.hibernate.service.spi.ServiceRegistryAwareService.injectServices:(Lorg/hibernate/service/spi/ServiceRegistryImplementor;)V
4: StackMap locals: org.hibernate.service.Service
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 5 1 serviceBinding Lorg/hibernate/service/spi/ServiceBinding<TR;>;
1 5 2 service TR;
Signature: <R::Lorg/hibernate/service/Service;>(Lorg/hibernate/service/spi/ServiceBinding<TR;>;)V
MethodParameters:
Name Flags
serviceBinding
private <R extends org.hibernate.service.Service> void applyInjections();
descriptor: (Lorg/hibernate/service/Service;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getMethods:()[Ljava/lang/reflect/Method;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 7
StackMap locals: org.hibernate.service.internal.AbstractServiceRegistryImpl org.hibernate.service.Service top int int java.lang.reflect.Method[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 2
ldc Lorg/hibernate/service/spi/InjectService;
invokevirtual java.lang.reflect.Method.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast org.hibernate.service.spi.InjectService
astore 6
start local 6 3: aload 6
ifnonnull 5
4: goto 6
5: StackMap locals: org.hibernate.service.internal.AbstractServiceRegistryImpl org.hibernate.service.Service java.lang.reflect.Method int int java.lang.reflect.Method[] org.hibernate.service.spi.InjectService
StackMap stack:
aload 0
aload 1
aload 2
aload 6
invokevirtual org.hibernate.service.internal.AbstractServiceRegistryImpl.processInjection:(Lorg/hibernate/service/Service;Ljava/lang/reflect/Method;Lorg/hibernate/service/spi/InjectService;)V
end local 6 end local 2 6: StackMap locals: org.hibernate.service.internal.AbstractServiceRegistryImpl org.hibernate.service.Service top int int java.lang.reflect.Method[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 4
if_icmplt 1
8: goto 11
9: StackMap locals: org.hibernate.service.internal.AbstractServiceRegistryImpl org.hibernate.service.Service
StackMap stack: java.lang.NullPointerException
pop
10: getstatic org.hibernate.service.internal.AbstractServiceRegistryImpl.log:Lorg/hibernate/internal/CoreMessageLogger;
new java.lang.StringBuilder
dup
ldc "NPE injecting service deps : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Object.getClass:()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;
invokeinterface org.hibernate.internal.CoreMessageLogger.error:(Ljava/lang/Object;)V
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 12 1 service TR;
2 6 2 method Ljava/lang/reflect/Method;
3 6 6 injectService Lorg/hibernate/service/spi/InjectService;
Exception table:
from to target type
0 8 9 Class java.lang.NullPointerException
Signature: <R::Lorg/hibernate/service/Service;>(TR;)V
MethodParameters:
Name Flags
service
private <T extends org.hibernate.service.Service> void processInjection(T, java.lang.reflect.Method, org.hibernate.service.spi.InjectService);
descriptor: (Lorg/hibernate/service/Service;Ljava/lang/reflect/Method;Lorg/hibernate/service/spi/InjectService;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual java.lang.reflect.Method.getParameterTypes:()[Ljava/lang/Class;
ifnull 1
aload 2
invokevirtual java.lang.reflect.Method.getParameterCount:()I
iconst_1
if_icmpeq 4
1: StackMap locals:
StackMap stack:
new org.hibernate.service.internal.ServiceDependencyException
dup
2: ldc "Encountered @InjectService on method with unexpected number of parameters"
3: invokespecial org.hibernate.service.internal.ServiceDependencyException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 3
invokeinterface org.hibernate.service.spi.InjectService.serviceRole:()Ljava/lang/Class;
astore 4
start local 4 5: aload 4
ifnull 6
aload 4
ldc Ljava/lang/Void;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 7
6: StackMap locals: java.lang.Class
StackMap stack:
aload 2
invokevirtual java.lang.reflect.Method.getParameterTypes:()[Ljava/lang/Class;
iconst_0
aaload
astore 4
7: StackMap locals:
StackMap stack:
aload 0
aload 4
invokevirtual org.hibernate.service.internal.AbstractServiceRegistryImpl.getService:(Ljava/lang/Class;)Lorg/hibernate/service/Service;
astore 5
start local 5 8: aload 5
ifnonnull 13
9: aload 3
invokeinterface org.hibernate.service.spi.InjectService.required:()Z
ifeq 17
10: new org.hibernate.service.internal.ServiceDependencyException
dup
11: new java.lang.StringBuilder
dup
ldc "Dependency ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "] declared by service ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "] not found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
12: invokespecial org.hibernate.service.internal.ServiceDependencyException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals: org.hibernate.service.Service
StackMap stack:
aload 2
aload 1
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 5
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
14: goto 17
15: StackMap locals:
StackMap stack: java.lang.Exception
astore 6
start local 6 16: new org.hibernate.service.internal.ServiceDependencyException
dup
ldc "Cannot inject dependency service"
aload 6
invokespecial org.hibernate.service.internal.ServiceDependencyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 17: StackMap locals:
StackMap stack:
return
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 18 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 18 1 service TT;
0 18 2 injectionMethod Ljava/lang/reflect/Method;
0 18 3 injectService Lorg/hibernate/service/spi/InjectService;
5 18 4 dependentServiceRole Ljava/lang/Class;
8 18 5 dependantService Lorg/hibernate/service/Service;
16 17 6 e Ljava/lang/Exception;
Exception table:
from to target type
13 14 15 Class java.lang.Exception
Signature: <T::Lorg/hibernate/service/Service;>(TT;Ljava/lang/reflect/Method;Lorg/hibernate/service/spi/InjectService;)V
MethodParameters:
Name Flags
service
injectionMethod
injectService
public <R extends org.hibernate.service.Service> void startService(org.hibernate.service.spi.ServiceBinding<R>);
descriptor: (Lorg/hibernate/service/spi/ServiceBinding;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: ldc Lorg/hibernate/service/spi/Startable;
aload 1
invokevirtual org.hibernate.service.spi.ServiceBinding.getService:()Lorg/hibernate/service/Service;
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 2
1: aload 1
invokevirtual org.hibernate.service.spi.ServiceBinding.getService:()Lorg/hibernate/service/Service;
checkcast org.hibernate.service.spi.Startable
invokeinterface org.hibernate.service.spi.Startable.start:()V
2: StackMap locals:
StackMap stack:
ldc Lorg/hibernate/service/spi/Manageable;
aload 1
invokevirtual org.hibernate.service.spi.ServiceBinding.getService:()Lorg/hibernate/service/Service;
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 7
3: aload 0
ldc Lorg/hibernate/jmx/spi/JmxService;
invokevirtual org.hibernate.service.internal.AbstractServiceRegistryImpl.getService:(Ljava/lang/Class;)Lorg/hibernate/service/Service;
checkcast org.hibernate.jmx.spi.JmxService
4: aload 1
invokevirtual org.hibernate.service.spi.ServiceBinding.getService:()Lorg/hibernate/service/Service;
checkcast org.hibernate.service.spi.Manageable
5: aload 1
invokevirtual org.hibernate.service.spi.ServiceBinding.getServiceRole:()Ljava/lang/Class;
6: invokeinterface org.hibernate.jmx.spi.JmxService.registerService:(Lorg/hibernate/service/spi/Manageable;Ljava/lang/Class;)V
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 8 1 serviceBinding Lorg/hibernate/service/spi/ServiceBinding<TR;>;
Signature: <R::Lorg/hibernate/service/Service;>(Lorg/hibernate/service/spi/ServiceBinding<TR;>;)V
MethodParameters:
Name Flags
serviceBinding
public boolean isActive();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.active:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
public synchronized void destroy();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.active:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_1
iconst_0
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 21
1: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.initializedServiceByRole:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.clear:()V
2: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.serviceBindingList:Ljava/util/List;
dup
astore 1
monitorenter
3: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.serviceBindingList:Ljava/util/List;
4: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.serviceBindingList:Ljava/util/List;
invokeinterface java.util.List.size:()I
5: invokeinterface java.util.List.listIterator:(I)Ljava/util/ListIterator;
astore 2
start local 2 6: goto 9
7: StackMap locals: java.util.List java.util.ListIterator
StackMap stack:
aload 2
invokeinterface java.util.ListIterator.previous:()Ljava/lang/Object;
checkcast org.hibernate.service.spi.ServiceBinding
astore 3
start local 3 8: aload 3
invokevirtual org.hibernate.service.spi.ServiceBinding.getLifecycleOwner:()Lorg/hibernate/service/spi/ServiceBinding$ServiceLifecycleOwner;
aload 3
invokeinterface org.hibernate.service.spi.ServiceBinding$ServiceLifecycleOwner.stopService:(Lorg/hibernate/service/spi/ServiceBinding;)V
end local 3 9: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.ListIterator.hasPrevious:()Z
ifne 7
10: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.serviceBindingList:Ljava/util/List;
invokeinterface java.util.List.clear:()V
end local 2 11: aload 1
monitorexit
12: goto 15
StackMap locals: org.hibernate.service.internal.AbstractServiceRegistryImpl java.util.List
StackMap stack: java.lang.Throwable
13: aload 1
monitorexit
14: athrow
15: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.serviceBindingMap:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.clear:()V
16: goto 20
17: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
18: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.parent:Lorg/hibernate/service/spi/ServiceRegistryImplementor;
aload 0
invokeinterface org.hibernate.service.spi.ServiceRegistryImplementor.deRegisterChild:(Lorg/hibernate/service/spi/ServiceRegistryImplementor;)V
19: aload 4
athrow
20: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.parent:Lorg/hibernate/service/spi/ServiceRegistryImplementor;
aload 0
invokeinterface org.hibernate.service.spi.ServiceRegistryImplementor.deRegisterChild:(Lorg/hibernate/service/spi/ServiceRegistryImplementor;)V
21: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
6 11 2 serviceBindingsIterator Ljava/util/ListIterator<Lorg/hibernate/service/spi/ServiceBinding;>;
8 9 3 serviceBinding Lorg/hibernate/service/spi/ServiceBinding;
Exception table:
from to target type
3 12 13 any
13 14 13 any
1 17 17 any
public <R extends org.hibernate.service.Service> void stopService(org.hibernate.service.spi.ServiceBinding<R>);
descriptor: (Lorg/hibernate/service/spi/ServiceBinding;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.hibernate.service.spi.ServiceBinding.getService:()Lorg/hibernate/service/Service;
astore 2
start local 2 1: ldc Lorg/hibernate/service/spi/Stoppable;
aload 2
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 6
2: aload 2
checkcast org.hibernate.service.spi.Stoppable
invokeinterface org.hibernate.service.spi.Stoppable.stop:()V
3: goto 6
4: StackMap locals: org.hibernate.service.internal.AbstractServiceRegistryImpl org.hibernate.service.spi.ServiceBinding org.hibernate.service.Service
StackMap stack: java.lang.Exception
astore 3
start local 3 5: getstatic org.hibernate.service.internal.AbstractServiceRegistryImpl.log:Lorg/hibernate/internal/CoreMessageLogger;
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 3
invokevirtual java.lang.Exception.toString:()Ljava/lang/String;
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToStopService:(Ljava/lang/Class;Ljava/lang/String;)V
end local 3 6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 7 1 binding Lorg/hibernate/service/spi/ServiceBinding<TR;>;
1 7 2 service Lorg/hibernate/service/Service;
5 6 3 e Ljava/lang/Exception;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
Signature: <R::Lorg/hibernate/service/Service;>(Lorg/hibernate/service/spi/ServiceBinding<TR;>;)V
MethodParameters:
Name Flags
binding
public synchronized void registerChild(org.hibernate.service.spi.ServiceRegistryImplementor);
descriptor: (Lorg/hibernate/service/spi/ServiceRegistryImplementor;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.childRegistries:Ljava/util/Set;
ifnonnull 2
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield org.hibernate.service.internal.AbstractServiceRegistryImpl.childRegistries:Ljava/util/Set;
2: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.childRegistries:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
ifne 7
3: getstatic org.hibernate.service.internal.AbstractServiceRegistryImpl.log:Lorg/hibernate/internal/CoreMessageLogger;
4: ldc "Child ServiceRegistry [%s] was already registered; this will end badly later..."
5: aload 1
6: invokeinterface org.hibernate.internal.CoreMessageLogger.warnf:(Ljava/lang/String;Ljava/lang/Object;)V
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 8 1 child Lorg/hibernate/service/spi/ServiceRegistryImplementor;
MethodParameters:
Name Flags
child
public synchronized void deRegisterChild(org.hibernate.service.spi.ServiceRegistryImplementor);
descriptor: (Lorg/hibernate/service/spi/ServiceRegistryImplementor;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.childRegistries:Ljava/util/Set;
ifnonnull 2
1: new java.lang.IllegalStateException
dup
ldc "No child ServiceRegistry registrations found"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.childRegistries:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
3: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.childRegistries:Ljava/util/Set;
invokeinterface java.util.Set.isEmpty:()Z
ifeq 13
4: aload 0
getfield org.hibernate.service.internal.AbstractServiceRegistryImpl.autoCloseRegistry:Z
ifeq 10
5: getstatic org.hibernate.service.internal.AbstractServiceRegistryImpl.log:Lorg/hibernate/internal/CoreMessageLogger;
6: ldc "Implicitly destroying ServiceRegistry on de-registration of all child ServiceRegistries"
7: invokeinterface org.hibernate.internal.CoreMessageLogger.debug:(Ljava/lang/Object;)V
8: aload 0
invokevirtual org.hibernate.service.internal.AbstractServiceRegistryImpl.destroy:()V
9: goto 13
10: StackMap locals:
StackMap stack:
getstatic org.hibernate.service.internal.AbstractServiceRegistryImpl.log:Lorg/hibernate/internal/CoreMessageLogger;
11: ldc "Skipping implicitly destroying ServiceRegistry on de-registration of all child ServiceRegistries"
12: invokeinterface org.hibernate.internal.CoreMessageLogger.debug:(Ljava/lang/Object;)V
13: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/hibernate/service/internal/AbstractServiceRegistryImpl;
0 14 1 child Lorg/hibernate/service/spi/ServiceRegistryImplementor;
MethodParameters:
Name Flags
child
}
SourceFile: "AbstractServiceRegistryImpl.java"
InnerClasses:
public abstract ServiceLifecycleOwner = org.hibernate.service.spi.ServiceBinding$ServiceLifecycleOwner of org.hibernate.service.spi.ServiceBinding