Package org.openengsb.core.api.descriptor.ServiceDescriptor

Examples of org.openengsb.core.api.descriptor.ServiceDescriptor.Builder


public class ${connectorName}ConnectorProvider extends AbstractConnectorProvider {

    @Override
    public ServiceDescriptor getDescriptor() {
        Builder builder = ServiceDescriptor.builder(strings);
        builder.id(this.id);
        builder.name("${connectorName}.name").description("${connectorName}.description");
        builder.attribute(builder.newAttribute().id("attr").name("${connectorName}.attr")
                .description("${connectorName}.attr.description").defaultValue("${connectorName.atr.defaultValue}")
                .required()
                .build());
        return builder.build();
    }
View Full Code Here


    private ProxyConnectorRegistryImpl connectorRegistry;

    @Override
    public ServiceDescriptor getDescriptor() {
        Builder builder = ServiceDescriptor.builder(strings);
        builder.id("external-connector-proxy");
        builder.name("proxy.name", "[proxy-name]");
        builder.description("proxy.description");
        builder.attribute(builder.newAttribute().id("portId").name("proxy.port.id")
            .description("proxy.port.description").build());
        builder.attribute(builder.newAttribute().id("destination").name("proxy.destination.name")
            .description("proxy.destination.description").build());
        builder.attribute(builder.newAttribute().id("serviceId").name("proxy.serviceId.name")
            .description("proxy.serviceId.description").build());
        return builder.build();
    }
View Full Code Here

public class WicketAclConnectorProvider extends AbstractConnectorProvider {

    @Override
    public ServiceDescriptor getDescriptor() {
        Builder builder = ServiceDescriptor.builder(strings);
        builder.id(id);
        builder.name("wicketacl.name").description("wicketacl.description");

        return builder.build();
    }
View Full Code Here

public class CompositeConnectorProvider extends AbstractConnectorProvider implements VirtualConnectorProvider {
   
    @Override
    public ServiceDescriptor getDescriptor() {
        Builder builder = ServiceDescriptor.builder(strings);

        builder.id("connector-composition");
        builder.name("composite.name", "[proxy-name]");
        builder.description("composite.description");

        builder.attribute(builder.newAttribute().id("queryString").name("composite.queryString.id")
            .description("composite.queryString.description").build());
        builder.attribute(builder.newAttribute().id("compositeStrategy").name("composite.strategy.id")
            .description("composite.strategy.description").build());

        return builder.build();
    }
View Full Code Here

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();
    }
View Full Code Here

        this.authenticationContext = authenticationContext;
    }

    @Override
    public ServiceDescriptor getDescriptor() {
        Builder builder = ServiceDescriptor.builder(strings);

        builder.id("filewatcher");
        builder.name("filewatcher.name", "filewatcher");
        builder.description("filewatcher.description");

        builder.attribute(builder.newAttribute().id("watchfile").name("filewatcher.watchfile.id")
            .description("filewatcher.watchfile.description").build());

        return builder.build();
    }
View Full Code Here

public class UsernamePasswordConnectorProvider extends AbstractConnectorProvider {

    @Override
    public ServiceDescriptor getDescriptor() {
        Builder builder = ServiceDescriptor.builder(strings);
        builder.id(id);
        builder.name("usernamepassword.name").description("usernamepassword.description");
        return builder.build();
    }
View Full Code Here

public class UserProjectsJiraConnectorProvider extends AbstractConnectorProvider {

    @Override
    public ServiceDescriptor getDescriptor() {
        Builder builder = ServiceDescriptor.builder(strings);
        builder.id(id);
        builder.name("userprojects.jira.name").description("userprojects.jira.description");

        return builder.build();
    }
View Full Code Here

public class MemoryAuditingConnectorProvider extends AbstractConnectorProvider {

    @Override
    public ServiceDescriptor getDescriptor() {
        Builder builder = ServiceDescriptor.builder(strings);
        builder.id(id);
        builder.name("service.name").description("service.description");
        builder.attribute(builder.newAttribute().id("attr").name("service.attr.name")
            .description("service.attr.description").build());
        return builder.build();
    }
View Full Code Here

public class ServiceAclConnectorProvider extends AbstractConnectorProvider {

    @Override
    public ServiceDescriptor getDescriptor() {
        Builder builder = ServiceDescriptor.builder(strings);
        builder.id(id);
        builder.name("UsernamePasswordAuthenticator.name").description("UsernamePasswordAuthenticator.description");
        builder.attribute(builder.newAttribute().id("attr").name("UsernamePasswordAuthenticator.attr")
            .description("UsernamePasswordAuthenticator.attr.description")
            .defaultValue("${connectorName.atr.defaultValue}")
            .required()
            .build());
        return builder.build();
    }
View Full Code Here

TOP

Related Classes of org.openengsb.core.api.descriptor.ServiceDescriptor.Builder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.