Contact Us 1-800-596-4880

No Authentication

DevKit is compatible only with Studio 6 and Mule 3. To build Mule 4 connectors, see the Mule SDK documentation.

When a connector does not use authentication, you can use @Connector with @Configuration.

@Configuration adds a set of @Configurable fields to your connector as a connector configuration.

Prerequisites

This document assumes you are familiar with the Anypoint Connector DevKit and you are ready to implement a configuration in your connector.

@Configuration Annotation

To implement a @Configuration on your Connector, create a new class and annotate it with @Configuration.

The following table describes the parameters for the @Configuration annotation:

Parameter Description Required? Default Value

friendlyName

Defines the name that is going to be displayed in the connector configuration pop up.

configElementName

Example

Ensure these instance variables have public getters and setters (not shown).

@Connector(name = "connector")
public class MyConnector
{
   @ConnectionStrategy
   private ConnectorConfiguration strategy;

/**
 * Processors
 */
}

@Configuration(friendlyName="Foo Configuration")
public class ConnectorConfiguration
{
   @Configurable
   private String property;

   @Configurable
   private String anotherProperty;
}