Creation of DataConnector
Rod Widdowson
rdw at steadingsoftware.com
Wed Oct 19 11:42:59 EDT 2016
> This is MyDataConnector
So, your data connector returns one attribute called "test value from class" with no values.
You then return from resolution with just one attribute resolved (with another name which is going to cause all sort of problems
down stream).
There absolutely nothing in your data connector which requires configuration and so all the stuff in your xml file is not used (it
just goes into the parent bean and is forgotten about).
You need to:
1) Make your connector extend the correct base class
2) Add setters for all the properties you want to configure and set them in the xml file (This is Spring 101 and we cannot help you
with that).
3) In your doDataConnectorResolve create all the attributes that you need with the values that are relevant and put them into the
map with the correct name
You appear to be struggling with (2) and I am not sure how to help you beyond pointing you to the Spring documentation.
As an example the StaticDataConnector is a good example to read over to see how all the moving parts lock together, but it is a very
bad place to start coding from.
Rod
More information about the dev
mailing list