datasources-agroal/src/main/java/org/wildfly/extension/datasources/agroal/AbstractDataSourceOperations.java
protected static AgroalConnectionFactoryConfigurationSupplier connectionFactoryConfiguration(OperationContext context, ModelNode model) throws OperationFailedException {
        AgroalConnectionFactoryConfigurationSupplier configuration = new AgroalConnectionFactoryConfigurationSupplier();

        if (AbstractDataSourceDefinition.URL_ATTRIBUTE.resolveModelAttribute(context, model).isDefined()) {
            configuration.jdbcUrl(AbstractDataSourceDefinition.URL_ATTRIBUTE.resolveModelAttribute(context, model).asString());
        }

        if (AbstractDataSourceDefinition.NEW_CONNECTION_SQL_ATTRIBUTE.resolveModelAttribute(context, model).isDefined()) {
            configuration.initialSql(AbstractDataSourceDefinition.NEW_CONNECTION_SQL_ATTRIBUTE.resolveModelAttribute(context, model).asString());
        }

        if (AbstractDataSourceDefinition.TRANSACTION_ISOLATION_ATTRIBUTE.resolveModelAttribute(context, model).isDefined()) {
            configuration.jdbcTransactionIsolation(TransactionIsolation.valueOf(AbstractDataSourceDefinition.TRANSACTION_ISOLATION_ATTRIBUTE.resolveModelAttribute(context, model).asString()));
        }

        if (AbstractDataSourceDefinition.CONNECTION_PROPERTIES_ATTRIBUTE.resolveModelAttribute(context, model).isDefined()) {
            for (Property jdbcProperty : AbstractDataSourceDefinition.CONNECTION_PROPERTIES_ATTRIBUTE.resolveModelAttribute(context, model).asPropertyList()) {
                configuration.jdbcProperty(jdbcProperty.getName(), jdbcProperty.getValue().asString());
            }
        }

        if (AbstractDataSourceDefinition.USERNAME_ATTRIBUTE.resolveModelAttribute(context, model).isDefined()) {
            configuration.principal(new NamePrincipal(AbstractDataSourceDefinition.USERNAME_ATTRIBUTE.resolveModelAttribute(context, model).asString()));
        }
        if (AbstractDataSourceDefinition.PASSWORD_ATTRIBUTE.resolveModelAttribute(context, model).isDefined()) {
            configuration.credential(new SimplePassword(AbstractDataSourceDefinition.PASSWORD_ATTRIBUTE.resolveModelAttribute(context, model).asString()));
        }
        return configuration;
    }
protected static AgroalConnectionFactoryConfigurationSupplier connectionFactoryConfiguration(OperationContext context, ModelNode model) throws OperationFailedException {
        AgroalConnectionFactoryConfigurationSupplier configuration = new AgroalConnectionFactoryConfigurationSupplier();

        if (AbstractDataSourceDefinition.URL_ATTRIBUTE.resolveModelAttribute(context, model).isDefined()) {
            configuration.jdbcUrl(AbstractDataSourceDefinition.URL_ATTRIBUTE.resolveModelAttribute(context, model).asString());
        }

        if (AbstractDataSourceDefinition.NEW_CONNECTION_SQL_ATTRIBUTE.resolveModelAttribute(context, model).isDefined()) {
            configuration.initialSql(AbstractDataSourceDefinition.NEW_CONNECTION_SQL_ATTRIBUTE.resolveModelAttribute(context, model).asString());
        }

        if (AbstractDataSourceDefinition.TRANSACTION_ISOLATION_ATTRIBUTE.resolveModelAttribute(context, model).isDefined()) {
            configuration.jdbcTransactionIsolation(TransactionIsolation.valueOf(AbstractDataSourceDefinition.TRANSACTION_ISOLATION_ATTRIBUTE.resolveModelAttribute(context, model).asString()));
        }

        if (AbstractDataSourceDefinition.CONNECTION_PROPERTIES_ATTRIBUTE.resolveModelAttribute(context, model).isDefined()) {
            for (Property jdbcProperty : AbstractDataSourceDefinition.CONNECTION_PROPERTIES_ATTRIBUTE.resolveModelAttribute(context, model).asPropertyList()) {
                configuration.jdbcProperty(jdbcProperty.getName(), jdbcProperty.getValue().asString());
            }
        }

        if (AbstractDataSourceDefinition.USERNAME_ATTRIBUTE.resolveModelAttribute(context, model).isDefined()) {
            configuration.principal(new NamePrincipal(AbstractDataSourceDefinition.USERNAME_ATTRIBUTE.resolveModelAttribute(context, model).asString()));
        }
        if (AbstractDataSourceDefinition.PASSWORD_ATTRIBUTE.resolveModelAttribute(context, model).isDefined()) {
            configuration.credential(new SimplePassword(AbstractDataSourceDefinition.PASSWORD_ATTRIBUTE.resolveModelAttribute(context, model).asString()));
        }
        return configuration;
    }
protected static AgroalConnectionFactoryConfigurationSupplier connectionFactoryConfiguration ( OperationContext context , ModelNode model ) throws OperationFailedException { AgroalConnectionFactoryConfigurationSupplier configuration = new AgroalConnectionFactoryConfigurationSupplier ( ) ; if ( AbstractDataSourceDefinition . URL_ATTRIBUTE . resolveModelAttribute ( context , model ) . isDefined ( ) ) { configuration . jdbcUrl ( AbstractDataSourceDefinition . URL_ATTRIBUTE . resolveModelAttribute ( context , model ) . asString ( ) ) ; } if ( AbstractDataSourceDefinition . NEW_CONNECTION_SQL_ATTRIBUTE . resolveModelAttribute ( context , model ) . isDefined ( ) ) { configuration . initialSql ( AbstractDataSourceDefinition . NEW_CONNECTION_SQL_ATTRIBUTE . resolveModelAttribute ( context , model ) . asString ( ) ) ; } if ( AbstractDataSourceDefinition . TRANSACTION_ISOLATION_ATTRIBUTE . resolveModelAttribute ( context , model ) . isDefined ( ) ) { configuration . jdbcTransactionIsolation ( TransactionIsolation . valueOf ( AbstractDataSourceDefinition . TRANSACTION_ISOLATION_ATTRIBUTE . resolveModelAttribute ( context , model ) . asString ( ) ) ) ; } if ( AbstractDataSourceDefinition . CONNECTION_PROPERTIES_ATTRIBUTE . resolveModelAttribute ( context , model ) . isDefined ( ) ) { for ( Property jdbcProperty : AbstractDataSourceDefinition . CONNECTION_PROPERTIES_ATTRIBUTE . resolveModelAttribute ( context , model ) . asPropertyList ( ) ) { configuration . jdbcProperty ( jdbcProperty . getName ( ) , jdbcProperty . getValue ( ) . asString ( ) ) ; } } if ( AbstractDataSourceDefinition . USERNAME_ATTRIBUTE . resolveModelAttribute ( context , model ) . isDefined ( ) ) { configuration . principal ( new NamePrincipal ( AbstractDataSourceDefinition . USERNAME_ATTRIBUTE . resolveModelAttribute ( context , model ) . asString ( ) ) ) ; } if ( AbstractDataSourceDefinition . PASSWORD_ATTRIBUTE . resolveModelAttribute ( context , model ) . isDefined ( ) ) { configuration . credential ( new SimplePassword ( AbstractDataSourceDefinition . PASSWORD_ATTRIBUTE . resolveModelAttribute ( context , model ) . asString ( ) ) ) ; } return configuration ; }
--- //
--- //