Page History
...
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 | ||
---|---|---|
| ||
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 | ||
---|---|---|
| ||
<context:component-scan base-package="your.own.package.connection" /> |
Thats all you have to do to create a custom connection for your plugin!
Overview
Content Tools