Versions Compared

Key

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

...

Annotate the class and implement the two functions. See example: 

 

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 {
	public OtherConnection()
	{
		System.out.println(getType());
	}
	
	@Override
	public String getName() {
		return "OtherConn";
	}
		
	@Override
	public ConnectionType getType() {
		return ConnectionType.CUSTOM;
	}
}