Examples of Module


Examples of com.alibaba.citrus.service.moduleloader.Module

    @Test
    public void execute() throws Exception {
        getInvocationContext("/app1");
        initRequestContext();

        Module module = moduleLoader.getModule("screens", "class.MyScreen");

        module.execute();

        assertEquals("execute", rundata.getAttribute("handler"));
    }
View Full Code Here

Examples of com.atlassian.labs.speakeasy.commonjs.Module

public class TestModule
{
    @Test
    public void parseExports()
    {
        Module module = new Module("foo", "foo.js", 0, "/**\n" +
                                          " * Some method\n" +
                                          " */\n" +
                                          "exports.foo = bar;");
        assertEquals(1, module.getExports().size());
        Export export = module.getExports().get("foo");
        assertEquals("foo", export.getName());
        assertEquals("Some method", export.getJsDoc().getDescription());
    }
View Full Code Here

Examples of com.caucho.inject.Module

  /**
   * Adds a module.
   */
  public Module createModule()
  {
    return new Module();
  }
View Full Code Here

Examples of com.claymus.site.Module

  }


  @Override
  public BlockDTO get(String encoded) throws UserException {
    Module module = ModuleData.getModule(ModuleHelper.class);
    User user = UserData.getUser();
    Block block = BlockData.getBlock(KeyFactory.stringToKey(encoded));

    int accessLevel = module.getAccessLevel(user.getRole());
    if(accessLevel >= ModuleHelper.ADD_EDIT || (accessLevel == ModuleHelper.ADD && block.getOwner().equals(user))) {
      BlockDTO blockDTO = block.getDTO();
      blockDTO.setLocations(getLocations());
      blockDTO.setRoles(getRoles());
      return blockDTO;
View Full Code Here

Examples of com.dgwave.car.common.Module

     * @return String of dependency lines
     * @throws MojoExecutionException In case the dependency version could not be determined
     */
    String calculateDependencies(final MavenProject proj) throws MojoExecutionException {
       
        Module module = new Module(
            new ModuleIdentifier(CeylonUtil.ceylonModuleBaseName(proj.getGroupId(), proj.getArtifactId()),
                proj.getVersion(), false, false));
       
        for (Dependency dep : proj.getDependencies()) {
            if (dep.getVersion() != null && !"".equals(dep.getVersion())) {
                module.addDependency(new ModuleIdentifier(
                    CeylonUtil.ceylonModuleBaseName(dep.getGroupId(), dep.getArtifactId()), dep.getVersion(),
                        dep.isOptional(), false)
                );
            } else {
                throw new MojoExecutionException(
                    "Dependency version could not be determined from the POM. Aborting.");
            }
        }
       
        StringBuilder builder = new StringBuilder(CeylonUtil.STRING_BUILDER_SIZE);
        for (ModuleIdentifier depMod : module.getDependencies()) {
            builder.append(depMod.getName());
            if (depMod.isOptional()) {
                builder.append("?");
            }
           
View Full Code Here

Examples of com.eastidea.qaforum.entity.Module

    return (Long) getId();
  }

  @Override
  protected Module createInstance() {
    Module module = new Module();
    return module;
  }
View Full Code Here

Examples of com.eastidea.qaforum.model.Module

  public void update(Module module) {
    entityManager.persist(module);
  }

  public void del(Long moduleid) {
    Module module = entityManager.find(Module.class, moduleid);
    entityManager.remove(module);
  }
View Full Code Here

Examples of com.espertech.esper.client.deploy.Module

                boolean isComments = (node instanceof ParseNodeComment);
                items.add(new ModuleItem(node.getItem().getExpression(), isComments, node.getItem().getLineNum(), node.getItem().getStartChar(), node.getItem().getEndChar()));
            }
        }

        return new Module(moduleName, resourceName, uses, imports, items, buffer);
    }
View Full Code Here

Examples of com.fasterxml.jackson.databind.Module

     * @see #addAdapter(String, Class, Object)
     */
    @Override
    public JsonService addAdapter(String name, Class target, Class mixin)
            throws Exception {
        Module mx = new MixinModule(name, target, mixin);
        getLogger().debug("registering unversioned simple mixin module named " + name + " of type " + mixin + "  for: " + target);
        mapper.registerModule(mx);
        return this;
    }
View Full Code Here

Examples of com.github.overengineer.container.module.Module

        LOG.info("Container verified.");
    }

    @Override
    public <M extends Module> Container loadModule(Class<M> moduleClass) {
        Module module = strategyFactory.create(moduleClass, Qualifier.NONE, Scopes.PROTOTYPE).get(this);
        for (Mapping<?> mapping : module.getMappings()) {
            Class<?> implementationType = mapping.getImplementationType();
            Object qualifier = mapping.getQualifier();
            if (qualifier.equals(Qualifier.NONE)) {
                qualifier = metadataAdapter.getQualifier(implementationType, implementationType.getAnnotations());
            }
            if (mapping instanceof InstanceMapping) {
                InstanceMapping<?> instanceMapping = (InstanceMapping) mapping;
                Object instance = instanceMapping.getInstance();
                for (Class<?> target : mapping.getTargetClasses()) {
                    addMapping(Locksmith.makeKey(target, qualifier), instance);
                }
                for (Key<?> targetGeneric : mapping.getTargetKeys()) {
                    addMapping(targetGeneric, instance);
                }
            } else {
                for (Class<?> target : mapping.getTargetClasses()) {
                    addMapping(Locksmith.makeKey(target, qualifier), implementationType, mapping.getScope());
                }
                for (Key<?> targetGeneric : mapping.getTargetKeys()) {
                    addMapping(targetGeneric, implementationType, mapping.getScope());
                }
            }
        }
        for (Map.Entry<Key, Class> entry : module.getNonManagedComponentFactories().entrySet()) {
            registerNonManagedComponentFactory(entry.getKey(), entry.getValue());
        }
        return this;
    }
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.