Nav
You are viewing an older version of this section. Click here to navigate to the latest version.

No Authentication

When a connector does not use authentiation, 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

Defines the name for the configuration  that is going to be used in the mule app.

config

Example

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


         
      
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@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;
}