Package org.hibernate.service.spi
Class ServiceBinding<R extends Service>
- java.lang.Object
-
- org.hibernate.service.spi.ServiceBinding<R>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ServiceBinding.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.ServiceLifecycleOwner
getLifecycleOwner()
R
getService()
@Nullable ServiceInitiator<R>
getServiceInitiator()
Class<R>
getServiceRole()
void
setService(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 @Nullable ServiceInitiator<R> getServiceInitiator()
-
getService
public R getService()
-
setService
public void setService(R service)
-
-