Java 类org.hibernate.service.spi.ServiceRegistryAwareService 实例源码

项目:lams    文件:AbstractServiceRegistryImpl.java   
@Override
public <R extends Service> void injectDependencies(ServiceBinding<R> serviceBinding) {
    final R service = serviceBinding.getService();

    applyInjections( service );

    if ( ServiceRegistryAwareService.class.isInstance( service ) ) {
        ( (ServiceRegistryAwareService) service ).injectServices( this );
    }
}