Search in sources :

Example 41 with ConfigurationWarnings

use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.

the class StreamTransformerPipe method registerChild.

/**
 * register a uniquely named record manager.
 * @param handler
 * @throws Exception
 * @deprecated please use registerRecordHandler()
 */
public void registerChild(IRecordHandler handler) throws Exception {
    ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance();
    String msg = "configuration using element 'child' is deprecated. Please use element 'recordHandler'";
    configWarnings.add(log, msg);
    registerRecordHandler(handler);
}
Also used : ConfigurationWarnings(nl.nn.adapterframework.configuration.ConfigurationWarnings)

Example 42 with ConfigurationWarnings

use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.

the class RecordTransformer method setOutputSeperator.

public void setOutputSeperator(String string) {
    ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance();
    String msg = ClassUtils.nameOf(this) + "[" + getName() + "]: typo has been fixed: please use 'outputSeparator' instead of 'outputSeperator'";
    configWarnings.add(log, msg);
    setOutputSeparator(string);
}
Also used : ConfigurationWarnings(nl.nn.adapterframework.configuration.ConfigurationWarnings)

Example 43 with ConfigurationWarnings

use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.

the class RecordXslTransformer method configure.

public void configure() throws ConfigurationException {
    super.configure();
    ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance();
    String msg = "class [" + this.getClass().getName() + "] is deprecated. Please replace by [nl.nn.adapterframework.batch.RecordXmlTransformer]";
    configWarnings.add(log, msg);
}
Also used : ConfigurationWarnings(nl.nn.adapterframework.configuration.ConfigurationWarnings)

Example 44 with ConfigurationWarnings

use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.

the class AbstractResultHandler method configure.

@Override
public void configure() throws ConfigurationException {
    if (paramList != null) {
        paramList.configure();
    }
    if (StringUtils.isNotEmpty(getPrefix()) || StringUtils.isNotEmpty(getSuffix())) {
        ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance();
        configWarnings.add(ClassUtils.nameOf(this) + " [" + getName() + "]: the use of attributes prefix and suffix has been replaced by 'blocks'. Please replace with 'onBlockOpen' and 'onBlockClose', respectively");
    }
}
Also used : ConfigurationWarnings(nl.nn.adapterframework.configuration.ConfigurationWarnings)

Example 45 with ConfigurationWarnings

use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.

the class FieldPositionRecordHandlerManager method setSeperator.

/**
 * @deprecated typo has been fixed: please use 'separator' instead of 'seperator'
 */
public void setSeperator(String string) {
    ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance();
    String msg = ClassUtils.nameOf(this) + "[" + getName() + "]: typo has been fixed: please use 'separator' instead of 'seperator'";
    configWarnings.add(log, msg);
    separator = string;
}
Also used : ConfigurationWarnings(nl.nn.adapterframework.configuration.ConfigurationWarnings)

Aggregations

ConfigurationWarnings (nl.nn.adapterframework.configuration.ConfigurationWarnings)58 ConfigurationException (nl.nn.adapterframework.configuration.ConfigurationException)16 TransformerConfigurationException (javax.xml.transform.TransformerConfigurationException)5 ArrayList (java.util.ArrayList)4 ITransactionalStorage (nl.nn.adapterframework.core.ITransactionalStorage)3 PipeForward (nl.nn.adapterframework.core.PipeForward)3 ReceiverBase (nl.nn.adapterframework.receivers.ReceiverBase)3 URL (java.net.URL)2 BaseConfigurationWarnings (nl.nn.adapterframework.configuration.BaseConfigurationWarnings)2 Configuration (nl.nn.adapterframework.configuration.Configuration)2 HasPhysicalDestination (nl.nn.adapterframework.core.HasPhysicalDestination)2 ISender (nl.nn.adapterframework.core.ISender)2 EsbSoapWrapperPipe (nl.nn.adapterframework.extensions.esb.EsbSoapWrapperPipe)2 IOException (java.io.IOException)1 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 Connection (java.sql.Connection)1 DatabaseMetaData (java.sql.DatabaseMetaData)1 SQLException (java.sql.SQLException)1 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1