src/main/java/org/jboss/loom/migrators/connectionFactories/ResAdapterMigrator.java
private static CliCommandAction createPropertyCliAction(ResourceAdapterBean adapter, ConnectionDefinitionBean def,
                                                            ConfigPropertyBean property) throws CliScriptException {
        String errMsg = "of config-property in connection-definition in resource-adapter must be set.";
        Utils.throwIfBlank(property.getConfigPropertyName(), errMsg, "Name");

        ModelNode propertyCmd = new ModelNode();
        propertyCmd.get(ClientConstants.OP).set(ClientConstants.ADD);
        propertyCmd.get(ClientConstants.OP_ADDR).add("subsystem", "resource-adapters");
        propertyCmd.get(ClientConstants.OP_ADDR).add("resource-adapter", adapter.getJndiName());
        propertyCmd.get(ClientConstants.OP_ADDR).add("connection-definitions", def.getPoolName());
        propertyCmd.get(ClientConstants.OP_ADDR).add("config-properties", property.getConfigPropertyName());

        propertyCmd.get("value").set(property.getConfigProperty());

        return new CliCommandAction( ResAdapterMigrator.class, createPropertyScript(adapter, def, property), propertyCmd);
    }
/**
     * Creates CliCommandAction for adding a Config-Property of the specific Connection-Definition of the specific
     * Resource-Adapter
     *
     * @param adapter  Resource-Adapter containing Connection-Definition
     * @param def      Connection-Definition containg Config-Property
     * @param property Config-Property
     * @return created CliCommandAction for adding the Config-Property
     * @throws CliScriptException if required attributes for a creation of the CLI command of the config-property
     *                            are missing or are empty (name)
     */
Creates CliCommandAction for adding a Config-Property of the specific Connection-Definition of the specific
Resource-Adapter


Creates CliCommandAction for adding a Config - Property of the specific Connection - Definition of the specific Resource - Adapter
private static CliCommandAction createPropertyCliAction(ResourceAdapterBean adapter, ConnectionDefinitionBean def,
                                                            ConfigPropertyBean property) throws CliScriptException {
        String errMsg = "of config-property in connection-definition in resource-adapter must be set.";
        Utils.throwIfBlank(property.getConfigPropertyName(), errMsg, "Name");
        ModelNode propertyCmd = new ModelNode();
        propertyCmd.get(ClientConstants.OP).set(ClientConstants.ADD);
        propertyCmd.get(ClientConstants.OP_ADDR).add("subsystem", "resource-adapters");
        propertyCmd.get(ClientConstants.OP_ADDR).add("resource-adapter", adapter.getJndiName());
        propertyCmd.get(ClientConstants.OP_ADDR).add("connection-definitions", def.getPoolName());
        propertyCmd.get(ClientConstants.OP_ADDR).add("config-properties", property.getConfigPropertyName());
        propertyCmd.get("value").set(property.getConfigProperty());
        return new CliCommandAction( ResAdapterMigrator.class, createPropertyScript(adapter, def, property), propertyCmd);
    }
private static CliCommandAction createPropertyCliAction ( ResourceAdapterBean adapter , ConnectionDefinitionBean def , ConfigPropertyBean property ) throws CliScriptException { String errMsg = "of config-property in connection-definition in resource-adapter must be set." ; Utils . throwIfBlank ( property . getConfigPropertyName ( ) , errMsg , "Name" ) ; ModelNode propertyCmd = new ModelNode ( ) ; propertyCmd . get ( ClientConstants . OP ) . set ( ClientConstants . ADD ) ; propertyCmd . get ( ClientConstants . OP_ADDR ) . add ( "subsystem" , "resource-adapters" ) ; propertyCmd . get ( ClientConstants . OP_ADDR ) . add ( "resource-adapter" , adapter . getJndiName ( ) ) ; propertyCmd . get ( ClientConstants . OP_ADDR ) . add ( "connection-definitions" , def . getPoolName ( ) ) ; propertyCmd . get ( ClientConstants . OP_ADDR ) . add ( "config-properties" , property . getConfigPropertyName ( ) ) ; propertyCmd . get ( "value" ) . set ( property . getConfigProperty ( ) ) ; return new CliCommandAction ( ResAdapterMigrator . class , createPropertyScript ( adapter , def , property ) , propertyCmd ) ; }
Creates CliCommandAction for adding a Config-Property of the specific Connection-Definition of the specific
 Resource-Adapter
Creates CliCommandAction for adding a Config - Property of the specific Connection - Definition of the specific Resource - Adapter