Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Annotate the class and implement the two functions. See example :below. In this class you can add methods to let your custom connection work. 

 

Code Block
languagejava
import com.aquima.interactions.foundation.connectivity.ConnectionType;
import com.aquima.interactions.foundation.connectivity.IConnection;
import com.aquima.web.config.annotation.AquimaConnection;

@AquimaConnection(connectionType = "custom", value = "OtherConn")
public class OtherConnection implements IConnection {
	
	@Override
	public String getName() {
		return "OtherConn";
	}
		
	@Override
	public ConnectionType getType() {
		return ConnectionType.CUSTOM;
	}
}

 

3. Let spring load the file

There are multiple ways to let spring load the file but it's recommended to add a reference to your custom connection class in the spring beans configuration file. 

Code Block
languagexml
	<context:component-scan base-package="your.own.package.connection" />

 

Thats all you have to do to create a custom connection for your plugin!