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

项目:lams    文件:StandardServiceRegistryImpl.java   
@Override
public <R extends Service> void configureService(ServiceBinding<R> serviceBinding) {
    if ( Configurable.class.isInstance( serviceBinding.getService() ) ) {
        ( (Configurable) serviceBinding.getService() ).configure( configurationValues );
    }
}
项目:Audit4j-Hibernate    文件:AuditServiceTest.java   
@Test
public void testconfigure() {
    Map mockedConfigurationValues = mock(Map.class);
    Configurable configurable = new AuditServiceImpl();
    configurable.configure(mockedConfigurationValues);
}