use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.
the class XmlQuerySender method configure.
@Override
public void configure(ParameterList parameterList) throws ConfigurationException {
super.configure(parameterList);
ConfigurationWarnings cw = ConfigurationWarnings.getInstance();
cw.add("The XmlSender is not released for production. The configuration options for this pipe will change in a non-backward compatible way");
}
use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.
the class DirectQuerySender method configure.
public void configure(boolean trust) throws ConfigurationException {
super.configure();
if (!trust) {
ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance();
String msg = "The class [" + getClass().getName() + "] is used one or more times. Please change to [" + FixedQuerySender.class.getName() + "] for better security";
configWarnings.add(log, msg, true);
}
}
use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.
the class StreamTransformerPipe method registerChild.
/**
* register a uniquely named manager.
* @param manager
* @throws Exception
* @deprecated please use registerManager
*/
public void registerChild(IRecordHandlerManager manager) throws Exception {
ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance();
String msg = "configuration using element 'child' is deprecated. Please use element 'manager'";
configWarnings.add(log, msg);
registerManager(manager);
}
use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.
the class StreamTransformerPipe method registerChild.
/**
* register a uniquely named result manager.
* @param handler
* @throws Exception
* @deprecated Please use registerResultHandler()
*/
public void registerChild(IResultHandler handler) throws Exception {
ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance();
String msg = "configuration using element 'child' is deprecated. Please use element 'resultHandler'";
configWarnings.add(log, msg);
registerResultHandler(handler);
}
use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.
the class StreamTransformerPipe method registerChild.
/**
* register a flow element that contains the handlers for a specific record type (key)
* @param flowEl
* @throws Exception
* @deprecated please use manager.addFlow()
*/
public void registerChild(RecordHandlingFlow flowEl) throws Exception {
ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance();
String msg = "configuration using element 'child' is deprecated. Please use element 'flow' nested in element 'manager'";
configWarnings.add(log, msg);
IRecordHandlerManager manager = (IRecordHandlerManager) registeredManagers.get(flowEl.getRecordHandlerManagerRef());
if (manager == null) {
throw new ConfigurationException("RecordHandlerManager [" + flowEl.getRecordHandlerManagerRef() + "] not found. Manager must be defined before the flows it contains");
}
// register the flow with the manager
manager.addHandler(flowEl);
}
Aggregations