Examples of SimpleModuleDefinition


Examples of org.impalaframework.module.definition.SimpleModuleDefinition

        ModuleDefinitionSource definitionSource = new SimpleModuleDefinitionSource(rootProjectName, new String[] { "parentTestContext.xml" }, new String[] { plugin1, plugin2 });

        public Test2() {

            ModuleDefinition p2 = definitionSource.getModuleDefinition().getChildModuleDefinition(plugin2);
            new SimpleModuleDefinition(p2, plugin3);
        }
View Full Code Here

Examples of org.springframework.xd.module.SimpleModuleDefinition

  private Module createSimpleModule(ModuleDescriptor moduleDescriptor, ModuleOptions moduleOptions,
      ModuleDeploymentProperties deploymentProperties) {
    if (log.isInfoEnabled()) {
      log.info("creating simple module " + moduleDescriptor);
    }
    SimpleModuleDefinition definition = (SimpleModuleDefinition) moduleDescriptor.getModuleDefinition();
    Resource moduleLocation = resourceLoader.getResource(definition.getLocation());
    ClassLoader moduleClassLoader = ModuleUtils.createModuleClassLoader(moduleLocation, this.parentClassLoader);

    Class<? extends SimpleModule> moduleClass = determineModuleClass((SimpleModuleDefinition) moduleDescriptor.getModuleDefinition(), moduleClassLoader);
    Assert.notNull(moduleClass,
        String.format("cannot create module '%s:%s' from module definition.", moduleDescriptor.getModuleName(),
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.