Package org.springframework.xd.module.core

Examples of org.springframework.xd.module.core.SimpleModule$ModuleParentContextCloserApplicationListener$ModuleContextCloserListener


  private void configureModuleConverters(String contentTypeString, Module module, boolean isInput) {
    if (logger.isDebugEnabled()) {
      logger.debug("module " + (isInput ? "input" : "output") + "Type is " + contentTypeString);
    }
    SimpleModule sm = (SimpleModule) module;
    try {
      MimeType contentType = resolveContentType(contentTypeString, module);

      AbstractMessageChannel channel = getChannel(module, isInput);

      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 {
View Full Code Here


    }
    return MimeType.valueOf(type);
  }

  private Class<?> resolveJavaType(String type, Module module) throws ClassNotFoundException, LinkageError {
    SimpleModule sm = (SimpleModule) module;
    return ClassUtils.forName(type, sm.getApplicationContext().getClassLoader());
  }
View Full Code Here

TOP

Related Classes of org.springframework.xd.module.core.SimpleModule$ModuleParentContextCloserApplicationListener$ModuleContextCloserListener

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.