接口 ServiceRegistryImplementor
-
- 所有超级接口:
AutoCloseable,ServiceRegistry
- 所有已知子接口:
SessionFactoryServiceRegistry
- 所有已知实现类:
AbstractServiceRegistryImpl,BootstrapServiceRegistryImpl,SessionFactoryServiceRegistryImpl,StandardServiceRegistryImpl
public interface ServiceRegistryImplementor extends ServiceRegistry
Additional integration contracts for a service registry.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 default voidclose()voiddeRegisterChild(ServiceRegistryImplementor child)When a registry is created with a parent, the parent is notified of the child via this callback.voiddestroy()Release resources<R extends Service>
ServiceBinding<R>locateServiceBinding(Class<R> serviceRole)Locate the binding for the given role.voidregisterChild(ServiceRegistryImplementor child)When a registry is created with a parent, the parent is notified of the child via this callback.-
从接口继承的方法 org.hibernate.service.ServiceRegistry
getParentServiceRegistry, getService, requireService
-
-
-
-
方法详细资料
-
locateServiceBinding
<R extends Service> ServiceBinding<R> locateServiceBinding(Class<R> serviceRole)
Locate the binding for the given role. Should, generally speaking, look into parent registry if one.- 类型参数:
R- generic return type.- 参数:
serviceRole- The service role for which to locate a binding.- 返回:
- The located binding; may be
null
-
close
default void close()
- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中ServiceRegistry
-
destroy
void destroy()
Release resources
-
registerChild
void registerChild(ServiceRegistryImplementor child)
When a registry is created with a parent, the parent is notified of the child via this callback.
-
deRegisterChild
void deRegisterChild(ServiceRegistryImplementor child)
When a registry is created with a parent, the parent is notified of the child via this callback.
-
-