Package org.springframework.xd.dirt.plugins

Examples of org.springframework.xd.dirt.plugins.ModuleConfigurationException


      CompositeMessageConverter converters = null;
      try {
        converters = converterFactory.newInstance(contentType);
      }
      catch (ConversionException e) {
        throw new ModuleConfigurationException(e.getMessage() +
            "(" +
            module.getName() + " --" + (isInput ? "input" : "output") + "Type=" + contentTypeString
            + ")");
      }

      Class<?> dataType = MessageConverterUtils.getJavaTypeForContentType(contentType,
          sm.getApplicationContext().getClassLoader());
      if (dataType == null) {
        throw new ModuleConfigurationException("Content type is not supported for " +
            module.getName() + " --" + (isInput ? "input" : "output") + "Type=" + contentTypeString);
      }
      else {
        channel.setDatatypes(dataType);
        channel.setMessageConverter(converters);
      }

    }
    catch (Throwable t) {
      throw new ModuleConfigurationException(t.getMessage(), t);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.xd.dirt.plugins.ModuleConfigurationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.