Examples of ModuleDescriptor


Examples of org.springframework.xd.module.ModuleDescriptor

      List<String> proposals) {
    String safe = exception.getExpressionStringUntilCheckpoint();
    List<ModuleDescriptor> parsed = parser.parse("__dummy", safe, toParsingContext(kind));

    // List is in reverse order
    ModuleDescriptor lastModule = parsed.get(0);
    String lastModuleName = lastModule.getModuleName();
    ModuleType lastModuleType = lastModule.getType();
    ModuleDefinition lastModuleDefinition = moduleRegistry.findDefinition(lastModuleName, lastModuleType);

    Set<String> alreadyPresentOptions = new HashSet<String>(lastModule.getParameters().keySet().size());
    // If we're providing completions for a composed module, some options
    // may already have a value appearing from the definition of the module itself, yet
    // the user *may* want to override them anyways. So pretend they're not there
    for (String optionName : lastModule.getParameters().keySet()) {
      if (!optionName.contains(CompositeModule.OPTION_SEPARATOR)) {
        alreadyPresentOptions.add(optionName);
      }
    }
    for (ModuleOption option : moduleOptionsMetadataResolver.resolve(lastModuleDefinition)) {
View Full Code Here

Examples of restx.build.ModuleDescriptor

            Path restxJsonFile = shell.currentLocation().resolve(restxJsonSupport.getDefaultFileName());
            if(java.nio.file.Files.notExists(restxJsonFile)){
                return Optional.absent();
            }

            ModuleDescriptor moduleDescriptor = restxJsonSupport.parse(restxJsonFile);
            return Optional.fromNullable(moduleDescriptor.getProperties().get("manifest.main.classname"));
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.