}
],
"sinks": [
- { "name" : "ExampleSink",
- "path" : "/usr/lib/automotive-message-broker/examplesinkplugin.so"
+ {
+ "name" : "ExampleSink",
+ "path" : "/usr/lib/automotive-message-broker/examplesinkplugin.so"
},
{
- "name" : "DBusSink",
- "path" : "/usr/lib/automotive-message-broker/dbussinkplugin.so"
+ "name" : "DBusSink",
+ "path" : "/usr/lib/automotive-message-broker/dbussinkplugin.so"
},
{
- "name" : "WebSocketSink",
- "path" : "/usr/lib/automotive-message-broker/websocketsinkplugin.so"
+ "name" : "WebSocketSink",
+ "path" : "/usr/lib/automotive-message-broker/websocketsinkplugin.so"
}
]
}
json_reader_end_member(reader);
AbstractSinkManager* plugin = loadPlugin<AbstractSinkManager*>(path);
- plugin->setConfiguration(configurationMap);
if(plugin == nullptr)
{
throw std::runtime_error("plugin is not a SinkManager");
}
+ plugin->setConfiguration(configurationMap);
+
json_reader_end_element(reader);
}
virtual void supportedChanged(PropertyList supportedProperties) = 0;
- void setConfiguration(map<string, string> config);
+ virtual void setConfiguration(map<string, string> config);
protected:
AbstractRoutingEngine* routingEngine;