public class ExampleConnectorProvider extends AbstractConnectorProvider {
@Override
public ServiceDescriptor getDescriptor() {
Builder builder = ServiceDescriptor.builder(strings);
builder.id(id);
builder.name("log.name").description("log.description");
builder.attribute(builder.newAttribute().id("prefix").name("log.prefix.name")
.description("log.outputMode.description").defaultValue("").build());
builder.attribute(builder.newAttribute().id("outputMode").name("log.outputMode.name")
.description("log.outputMode.description").defaultValue("log.outputMode.info")
.option("log.outputMode.debug", "DEBUG").option("log.outputMode.info", "INFO")
.option("log.outputMode.warn", "WARN").option("log.outputMode.error", "ERROR").required().build());
builder.attribute(builder.newAttribute().id("flush").name("log.flush.name")
.description("log.flush.description").defaultValue("false").asBoolean().build());
return builder.build();
}