Package org.hibernate.service.spi
Class ServiceBinding<R extendsService>
- java.lang.Object
- org.hibernate.service.spi.ServiceBinding<R>
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceServiceBinding.ServiceLifecycleOwner
Constructor Summary
Constructors Constructor Description ServiceBinding(ServiceBinding.ServiceLifecycleOwner lifecycleOwner,Class<R> serviceRole,R service)ServiceBinding(ServiceBinding.ServiceLifecycleOwner lifecycleOwner,ServiceInitiator<R> serviceInitiator)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceBinding.ServiceLifecycleOwnergetLifecycleOwner()RgetService()@NullableServiceInitiator<R>getServiceInitiator()Class<R>getServiceRole()voidsetService(R service)
Constructor Detail
ServiceBinding
public ServiceBinding(ServiceBinding.ServiceLifecycleOwner lifecycleOwner,Class<R> serviceRole,R service)
ServiceBinding
public ServiceBinding(ServiceBinding.ServiceLifecycleOwner lifecycleOwner,ServiceInitiator<R> serviceInitiator)
Method Detail
getLifecycleOwner
public ServiceBinding.ServiceLifecycleOwner getLifecycleOwner()
getServiceInitiator
public @NullableServiceInitiator<R> getServiceInitiator()
getService
public R getService()
setService
public void setService(R service)