Nav
You are viewing an older version of this topic. To go to a different version, use the version menu at the upper-right. +

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

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;
}

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.

+