Versions Compared

Key

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

...

Go to your plugin project and add a class. Pick a name for the class and let the class implement IConnection (com.aquima.interactions.foundation.connectivity.IConnection). 

2. Implement the connection

 

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. Load your custom connection

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

...