Examples of ModuleInfo


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

        if (handlers == null) {
            return null;
        }

        ModuleInfo moduleInfo = new ModuleInfo(type, name);
        FastClass fc = FastClass.create(moduleClass);
        Map<String, MethodInvoker> fastHandlers = createHashMap(handlers.size());

        for (Map.Entry<String, Method> entry : handlers.entrySet()) {
            FastMethod fm = fc.getMethod(entry.getValue());
View Full Code Here

Examples of com.caucho.quercus.module.ModuleInfo

  /**
   * Returns the module with the given name.
   */
  public QuercusModule findModule(String name)
  {
    ModuleInfo moduleInfo =  _modules.get(name);
    QuercusModule module = null;

    if (moduleInfo != null)
      module = moduleInfo.getModule();
    else
      module = getModuleContext().findModule(name);

    if (module == null)
      throw new IllegalStateException(L.l("'{0}' is an unknown quercus module",
View Full Code Here

Examples of com.caucho.quercus.module.ModuleInfo

    initLocal();
  }

  public void addModule(QuercusModule module)
  {
    ModuleInfo info = new ModuleInfo(_moduleContext,
                                     module.getClass().getName(),
                                     module);

    addModuleInfo(info);
  }
View Full Code Here

Examples of com.caucho.quercus.module.ModuleInfo

  /**
   * Returns the module with the given name.
   */
  public QuercusModule findModule(String name)
  {
    ModuleInfo moduleInfo =  _modules.get(name);
    QuercusModule module = null;

    if (moduleInfo != null)
      module = moduleInfo.getModule();
    else
      module = getModuleContext().findModule(name);

    if (module == null)
      throw new IllegalStateException(L.l("'{0}' is an unknown quercus module",
View Full Code Here

Examples of com.caucho.quercus.module.ModuleInfo

    initLocal();
  }

  public void addModule(QuercusModule module)
  {
    ModuleInfo info = new ModuleInfo(_moduleContext,
                                     module.getClass().getName(),
                                     module);

    addModuleInfo(info);
  }
View Full Code Here

Examples of com.etao.adhoc.analyse.vo.ModuleInfo

  public ModuleInfo getModuleInfo(String queryDay, String moduleName) {
    String sql = "SELECT query_cnt,uv FROM module_info" +
        " WHERE queryday=? " +
        " and module_name=? ";
    PreparedStatement pstmt=null;
    ModuleInfo moduleInfo = null;
    try {
      Connection conn = DriverManager.getConnection(url, username, password);

      pstmt = conn.prepareStatement(sql);
      pstmt.setString(1, queryDay);
      pstmt.setString(2, moduleName);
      ResultSet rs = pstmt.executeQuery();
      if(rs.next()){
        moduleInfo = new ModuleInfo();
        moduleInfo.setQueryDay(queryDay);
        moduleInfo.setModuleName(moduleName);
        moduleInfo.setQueryCnt(rs.getInt(1));
        moduleInfo.setUv(rs.getInt(2));

      }
      LOG.info(pstmt.toString());
      pstmt.close();
      conn.close();
View Full Code Here

Examples of com.etao.adhoc.analyse.vo.ModuleInfo

      Connection conn = DriverManager.getConnection(url, username, password);
      pstmt = conn.prepareStatement(sql);
      pstmt.setString(1, queryDay);
      ResultSet rs = pstmt.executeQuery();
      while(rs.next()){
        ModuleInfo moduleInfo = new ModuleInfo();
        moduleInfo.setQueryDay(queryDay);
        moduleInfo.setQueryCnt(rs.getInt(1));
        moduleInfo.setUv(rs.getInt(2));
        moduleInfo.setModuleName(rs.getString(3));
        moduleInfo.setNicklist(rs.getString(4));
        list.add(moduleInfo);

      }
      LOG.info(pstmt.toString());
      pstmt.close();
View Full Code Here

Examples of com.redhat.ceylon.cmr.api.ModuleInfo

    // Check the properties descriptor file for problems and at the same time
    // remove all classes that are found within the imported modules
    // from the given set of external class names
    private void checkModuleProperties(File descriptorFile, Set<String> externalClasses, Set<ModuleDependencyInfo> expectedDependencies) throws IOException {
        try{
            ModuleInfo dependencies = PropertiesDependencyResolver.INSTANCE.resolveFromFile(descriptorFile);
            checkDependencies(dependencies, externalClasses, expectedDependencies);
        }catch(ImportJarException x){
            throw x;
        }catch(IOException x){
            throw x;
View Full Code Here

Examples of com.redhat.ceylon.cmr.api.ModuleInfo

    // Check the XML descriptor file for problems and at the same time
    // remove all classes that are found within the imported modules
    // from the given set of external class names
    private void checkModuleXml(File descriptorFile, Set<String> externalClasses, Set<ModuleDependencyInfo> expectedDependencies) throws IOException {
        try{
            ModuleInfo dependencies = XmlDependencyResolver.INSTANCE.resolveFromFile(descriptorFile);
            checkDependencies(dependencies, externalClasses, expectedDependencies);
        }catch(ImportJarException x){
            throw x;
        }catch(IOException x){
            throw x;
View Full Code Here

Examples of gri.gridp.modules.ModuleInfo

      elem.addContent(packageElem);
    }
  }

  public ModuleInfo readModuleInfo(Element element) {
    ModuleInfo info = new ModuleInfo();

    List children = element.getChildren();
    Element child;
    for (int i=0; i<children.size(); i++) {
      child = (Element)children.get(i);
      String name = child.getName().toLowerCase();

      if (name.equals("title"))
        info.setTitle(child.getText());
      else if (name.equals("program"))
        info.setProgram(child.getText());
      else if (name.equals("description"))
        info.setDescription(child.getText());
      else if (name.equals("package"))
        info.setPackageInfo(packageSerializer.readPackageInfo(child));
    }

    return info;
  }
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.