Search in sources :

Example 1 with MarkLogicProvideConnectionProperties

use of org.talend.components.marklogic.MarkLogicProvideConnectionProperties in project components by Talend.

the class MarkLogicSourceOrSink method initialize.

@Override
public ValidationResult initialize(RuntimeContainer container, ComponentProperties properties) {
    ValidationResultMutable vr = new ValidationResultMutable();
    if (properties instanceof MarkLogicProvideConnectionProperties) {
        this.ioProperties = (MarkLogicProvideConnectionProperties) properties;
    } else {
        vr.setStatus(ValidationResult.Result.ERROR);
        vr.setMessage(MESSAGES.getMessage("error.wrongProperties"));
    }
    return vr;
}
Also used : MarkLogicProvideConnectionProperties(org.talend.components.marklogic.MarkLogicProvideConnectionProperties) ValidationResultMutable(org.talend.daikon.properties.ValidationResultMutable)

Aggregations

MarkLogicProvideConnectionProperties (org.talend.components.marklogic.MarkLogicProvideConnectionProperties)1 ValidationResultMutable (org.talend.daikon.properties.ValidationResultMutable)1