private Object getConfiguredPlatform(Map configVales, ServiceRegistryImplementor registry) { Object platform = configVales.get( AvailableSettings.JTA_PLATFORM ); if ( platform == null ) { final String transactionManagerLookupImplName = (String) configVales.get( Environment.TRANSACTION_MANAGER_STRATEGY ); if ( transactionManagerLookupImplName != null ) { LOG.deprecatedTransactionManagerStrategy(TransactionManagerLookup.class.getName(), Environment.TRANSACTION_MANAGER_STRATEGY, JtaPlatform.class.getName(), AvailableSettings.JTA_PLATFORM); platform = mapLegacyClasses( transactionManagerLookupImplName, configVales, registry ); LOG.debugf("Mapped %s -> %s", transactionManagerLookupImplName, platform); } } return platform; }
@Override @SuppressWarnings( {"unchecked"}) public JtaPlatform initiateService(Map configurationValues, ServiceRegistryImplementor registry) { final Object platform = getConfiguredPlatform( configurationValues, registry ); if ( platform == null ) { return new NoJtaPlatform();
@Override @SuppressWarnings( {"unchecked"}) public JtaPlatform initiateService(Map configurationValues, ServiceRegistryImplementor registry) { final Object platform = getConfiguredPlatform( configurationValues, registry ); if ( platform == null ) { return new NoJtaPlatform();
private Object getConfiguredPlatform(Map configVales, ServiceRegistryImplementor registry) { Object platform = configVales.get( AvailableSettings.JTA_PLATFORM ); if ( platform == null ) { final String transactionManagerLookupImplName = (String) configVales.get( Environment.TRANSACTION_MANAGER_STRATEGY ); if ( transactionManagerLookupImplName != null ) { LOG.deprecatedTransactionManagerStrategy(TransactionManagerLookup.class.getName(), Environment.TRANSACTION_MANAGER_STRATEGY, JtaPlatform.class.getName(), AvailableSettings.JTA_PLATFORM); platform = mapLegacyClasses( transactionManagerLookupImplName, configVales, registry ); LOG.debugf("Mapped %s -> %s", transactionManagerLookupImplName, platform); } } return platform; }