Code example for SessionImplementor

Methods: getFactory

0
		// (Comment by Emmanuel) 
	} 
 
	protected final MapDatastoreProvider getProvider(SessionImplementor session) {
		if ( provider == null ) {
			DatastoreProvider service = session.getFactory().getServiceRegistry().getService( DatastoreProvider.class );
			if ( service instanceof MapDatastoreProvider ) {
				provider = (MapDatastoreProvider) service;
			} 
			else { 
				log.unexpectedDatastoreProvider( service.getClass(), MapDatastoreProvider.class );
			} 
		} 
		return provider;
	} 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE