src/main/java/org/jboss/loom/migrators/connectionFactories/ResAdapterMigrator.java
private static String createResAdapterScript(ResourceAdapterBean resourceAdapter)
            throws CliScriptException {
        String errMsg = " in resource-adapter(connection-factories in AS5) must be set.";
        Utils.throwIfBlank(resourceAdapter.getArchive(), errMsg, "Archive name");

        StringBuilder resultBuilder = new StringBuilder();
        CliAddScriptBuilder cliBuilder = new CliAddScriptBuilder();

        String adapterScript = "/subsystem=resource-adapters/resource-adapter=" + resourceAdapter.getJndiName() + ":add(";
        cliBuilder.addProperty("archive", resourceAdapter.getArchive());
        cliBuilder.addProperty("transaction-support", resourceAdapter.getTransactionSupport());

        adapterScript = adapterScript.concat(cliBuilder.formatAndClearProps() + ")");
        resultBuilder.append(adapterScript);

        return resultBuilder.toString();
    }
/**
     * Creates CLI script for adding of the Resource-Adapter
     *
     * @param resourceAdapter object of Resource-Adapter
     * @return string containing created CLI script
     * @throws CliScriptException if required attributes are missing
     */
Creates CLI script for adding of the Resource-Adapter
@param resourceAdapter object of Resource-Adapter
@return string containing created CLI script
@throws CliScriptException if required attributes are missing
Creates CLI script for adding of the Resource - Adapter @param resourceAdapter object of Resource - Adapter @return string containing created CLI script @throws CliScriptException if required attributes are missing
private static String createResAdapterScript(ResourceAdapterBean resourceAdapter)
            throws CliScriptException {
        String errMsg = " in resource-adapter(connection-factories in AS5) must be set.";
        Utils.throwIfBlank(resourceAdapter.getArchive(), errMsg, "Archive name");
        StringBuilder resultBuilder = new StringBuilder();
        CliAddScriptBuilder cliBuilder = new CliAddScriptBuilder();
        String adapterScript = "/subsystem=resource-adapters/resource-adapter=" + resourceAdapter.getJndiName() + ":add(";
        cliBuilder.addProperty("archive", resourceAdapter.getArchive());
        cliBuilder.addProperty("transaction-support", resourceAdapter.getTransactionSupport());
        adapterScript = adapterScript.concat(cliBuilder.formatAndClearProps() + ")");
        resultBuilder.append(adapterScript);
        return resultBuilder.toString();
    }
private static String createResAdapterScript ( ResourceAdapterBean resourceAdapter ) throws CliScriptException { String errMsg = " in resource-adapter(connection-factories in AS5) must be set." ; Utils . throwIfBlank ( resourceAdapter . getArchive ( ) , errMsg , "Archive name" ) ; StringBuilder resultBuilder = new StringBuilder ( ) ; CliAddScriptBuilder cliBuilder = new CliAddScriptBuilder ( ) ; String adapterScript = "/subsystem=resource-adapters/resource-adapter=" + resourceAdapter . getJndiName ( ) + ":add(" ; cliBuilder . addProperty ( "archive" , resourceAdapter . getArchive ( ) ) ; cliBuilder . addProperty ( "transaction-support" , resourceAdapter . getTransactionSupport ( ) ) ; adapterScript = adapterScript . concat ( cliBuilder . formatAndClearProps ( ) + ")" ) ; resultBuilder . append ( adapterScript ) ; return resultBuilder . toString ( ) ; }
Creates CLI script for adding of the Resource-Adapter
 @param resourceAdapter object of Resource-Adapter
 @return string containing created CLI script
 @throws CliScriptException if required attributes are missing
Creates CLI script for adding of the Resource - Adapter @param resourceAdapter object of Resource - Adapter @return string containing created CLI script @throws CliScriptException if required attributes are missing