protected void createResourceAdapter ( DeploymentBuilder builder , String raClz , Collection < org . ironjacamar . common . api . metadata . spec . ConfigProperty > configProperties , Map < String , String > overrides , TransactionSupportEnum transactionSupport , String productName , String productVersion , InboundResourceAdapter ira , CloneableBootstrapContext bootstrapContext ) throws DeployException { try { Class < ? > clz = Class . forName ( raClz , true , builder . getClassLoader ( ) ) ; javax . resource . spi . ResourceAdapter resourceAdapter = ( javax . resource . spi . ResourceAdapter ) clz . newInstance ( ) ; validationObj . add ( new ValidateClass ( Key . RESOURCE_ADAPTER , clz , configProperties ) ) ; Collection < org . ironjacamar . core . api . deploymentrepository . ConfigProperty > dcps = injectConfigProperties ( resourceAdapter , configProperties , overrides , builder . getClassLoader ( ) ) ; org . ironjacamar . core . spi . statistics . StatisticsPlugin statisticsPlugin = null ; if ( resourceAdapter instanceof org . ironjacamar . core . spi . statistics . Statistics ) statisticsPlugin = ( ( org . ironjacamar . core . spi . statistics . Statistics ) resourceAdapter ) . getStatistics ( ) ; TransactionIntegration ti = null ; if ( isXA ( transactionSupport ) ) { ti = transactionIntegration ; } bootstrapContext . setResourceAdapter ( resourceAdapter ) ; builder . resourceAdapter ( new ResourceAdapterImpl ( resourceAdapter , bootstrapContext , dcps , statisticsPlugin , productName , productVersion , createInboundMapping ( ira , builder . getClassLoader ( ) ) , is16 ( builder . getMetadata ( ) ) , beanValidation , builder . getActivation ( ) . getBeanValidationGroups ( ) , ti ) ) ; } catch ( Throwable t ) { throw new DeployException ( bundle . unableToCreateResourceAdapter ( raClz ) , t ) ; } }
Create resource adapter instance