Package org.springframework.xd.module.options

Examples of org.springframework.xd.module.options.PojoModuleOptionsMetadata



  @Override
  public ModuleOptionsMetadata resolve(ModuleDefinition moduleDefinition) {
    if (moduleDefinition.getType() == job) {
      return new PojoModuleOptionsMetadata(JobOptionsMetadata.class);
    }
    else {
      return null;
    }
  }
View Full Code Here


  @Override
  public ModuleOptionsMetadata resolve(ModuleDefinition moduleDefinition) {
    List<ModuleOptionsMetadata> moms = new ArrayList<ModuleOptionsMetadata>();
    ModuleType type = moduleDefinition.getType();
    if (type == source || type == processor) {
      moms.add(new PojoModuleOptionsMetadata(OutputOptionsMetadata.class, conversionService));
    }
    if (type == sink || type == processor) {
      moms.add(new PojoModuleOptionsMetadata(InputOptionsMetadata.class, conversionService));
    }

    // Don't force deep layering if it's not needed
    switch (moms.size()) {
      case 0:
View Full Code Here

    @Bean
    public PropertySource<?> optionsMetadataPropertySource() throws BindException {
      Map<String, String> opts = new HashMap<>();
      opts.put("port", String.valueOf(port));

      return new PojoModuleOptionsMetadata(NetServerSourceOptionsMetadata.class)
          .interpolate(opts)
          .asPropertySource();
    }
View Full Code Here

TOP

Related Classes of org.springframework.xd.module.options.PojoModuleOptionsMetadata

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.