legacy/messaging/src/main/java/org/jboss/as/messaging/MigrateOperation.java
private boolean parameterIsAllowed(String name, String resourceType) {
        switch (resourceType) {
            case REMOTE_ACCEPTOR:
            case HTTP_ACCEPTOR:
            case REMOTE_CONNECTOR:
            case HTTP_CONNECTOR:
                // WFLY-5667 - for now remove only use-nio. Revisit this code when Artemis offers an API
                // to know which parameters are ignored.
                if ("use-nio".equals(name)) {
                    return false;
                } else {
                    return true;
                }
            default:
                // accept any parameter for other resources.
                return true;
        }
    }
private boolean parameterIsAllowed(String name, String resourceType) {
        switch (resourceType) {
            case REMOTE_ACCEPTOR:
            case HTTP_ACCEPTOR:
            case REMOTE_CONNECTOR:
            case HTTP_CONNECTOR:
                // WFLY-5667 - for now remove only use-nio. Revisit this code when Artemis offers an API
                // to know which parameters are ignored.
                if ("use-nio".equals(name)) {
                    return false;
                } else {
                    return true;
                }
            default:
                // accept any parameter for other resources.
                return true;
        }
    }
private boolean parameterIsAllowed ( String name , String resourceType ) { switch ( resourceType ) { case REMOTE_ACCEPTOR : case HTTP_ACCEPTOR : case REMOTE_CONNECTOR : case HTTP_CONNECTOR : // WFLY-5667 - for now remove only use-nio. Revisit this code when Artemis offers an API // to know which parameters are ignored. if ( "use-nio" . equals ( name ) ) { return false ; } else { return true ; } default : // accept any parameter for other resources. return true ; } }
Check if the name of the parameter is allowed for the given resourceType.
Check if the name of the parameter is allowed for the given resourceType .