modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/ReceiveMessageBuilder.java
@SuppressWarnings("unchecked")
    public T validator(final String ... validatorNames) {
        validateApplicationContext();

        for (final String validatorName : validatorNames) {
            getAction().addValidator(applicationContext.getBean(validatorName, MessageValidator.class));
        }

        return self;
    }
/**
     * Sets explicit message validators by name.
     * @param validatorNames
     * @return
     */
Sets explicit message validators by name.
@param validatorNames
@return
Sets explicit message validators by name . @param validatorNames @return
@SuppressWarnings("unchecked")
    public T validator(final String ... validatorNames) {
        validateApplicationContext();
        for (final String validatorName : validatorNames) {
            getAction().addValidator(applicationContext.getBean(validatorName, MessageValidator.class));
        }
        return self;
    }
@ SuppressWarnings ( "unchecked" ) public T validator ( final String ... validatorNames ) { validateApplicationContext ( ) ; for ( final String validatorName : validatorNames ) { getAction ( ) . addValidator ( applicationContext . getBean ( validatorName , MessageValidator . class ) ) ; } return self ; }
Sets explicit message validators by name.
Sets explicit message validators by name .