}
}
if ( injector == null ) {
log.gridDialectHasNoProperConstructor( clazz );
}
GridDialect gridDialect = (GridDialect) injector.newInstance( datastore );
if ( gridDialect instanceof BatchableGridDialect ) {
BatchOperationsDelegator delegator = new BatchOperationsDelegator( (BatchableGridDialect) gridDialect );
addListeners( delegator );
gridDialect = delegator;
}
log.useGridDialect( gridDialect.getClass().getName() );
if ( GridDialectLogger.activationNeeded() ) {
gridDialect = new GridDialectLogger( gridDialect );
log.info( "Grid dialect logs are active" );
}
else {