Examples of load()


Examples of org.nutz.ioc.IocLoader.load()

    assertTrue(iocLoader.getName() != null);
    assertTrue(iocLoader.getName().length > 0);

    for (String name : iocLoader.getName()) {
      assertNotNull(name);
      assertNotNull(iocLoader.load(null, name));
      IocObject iocObject = iocLoader.load(null, name);
      if (iocObject.hasArgs()) {
        for (IocValue iocValue : iocObject.getArgs()) {
          iocValue.getType();
          iocValue.getValue();
View Full Code Here

Examples of org.nutz.lang.util.MultiLineProperties.load()

        // 循环读取该语言的文件夹
        for (NutResource nr : nrs) {
          // 读取多行属性
          MultiLineProperties p = new MultiLineProperties();
          Reader r = nr.getReader();
          p.load(r);
          r.close();

          // 获取当前语言的 Map
          Map<String, Object> msgs = re.get(langType);
          if (null == msgs) {
View Full Code Here

Examples of org.nutz.mvc.MessageLoader.load()

            // 普通方式加载
            else {
                msgLoader = Mirror.me(lc.type()).born();
            }
            // 加载数据
            Map<String, Map<String, Object>> msgss = msgLoader.load(lc.value());

            // 保存消息 Map
            Mvcs.setMessageSet(msgss);

            // 如果有声明默认语言 ...
View Full Code Here

Examples of org.nutz.mvc.upload.util.BufferRing.load()

    try {
      ServletInputStream ins = req.getInputStream();
      // 构建 3 个环节点的缓冲环
      br = new BufferRing(ins, 3, bufferSize);
      // 初始加载
      info.current = br.load();
      // 跳过开始的标记
      mm = br.mark(firstBoundaryBytes);
      // 这是不可能的,应该立即退出
      if (mm != MarkMode.FOUND) {
        if (log.isWarnEnabled())
View Full Code Here

Examples of org.nxplanner.domain.repository.ObjectRepository.load()

        throws Exception {
        String oid = form.getOid();
        if (oid != null) {
            Class objectClass = getObjectType(actionMapping, request);
            ObjectRepository objectRepository = getRepository(objectClass);
            DomainObject object = (DomainObject) objectRepository.load(Integer.parseInt(oid));
            populateForm(form, object);
        }
    }

    protected void populateForm(AbstractEditorForm form, DomainObject object) throws Exception {
View Full Code Here

Examples of org.objectweb.celtix.tools.utils.PropertyUtil.load()

    }

    public void loadDefaultNS2Pck() {
        try {
            PropertyUtil properties = new PropertyUtil();
            properties.load(getResourceAsStream("toolspec/toolspecs/namespace2package.cfg"));
            namespacePackageMap.putAll(properties.getMaps());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
View Full Code Here

Examples of org.ogce.expbuilder.context.ApplicationGlobalContext.load()

              String userName = userInfo.getUserName();
               GSSCredential credential = ProxyManager.getDefaultProxy(userName);
          if(credential != null){
            context = new ApplicationGlobalContext();
            context.setGssCredential(credential);
            context.load();
            facesContext.getExternalContext().getSessionMap().put("applicationGlobalContext", context);
            this.setContext(context);
              checkStatus = true;
          }else{
            FacesContext.getCurrentInstance().getExternalContext().redirect("proxyconfigure.jsf");
View Full Code Here

Examples of org.olat.core.commons.services.text.impl.nutch.NGramProfile.load()

        InputStream is = this.getClass().getResourceAsStream("_resources/" + lang + "." + NGramProfile.FILE_EXTENSION);

        if (is != null) {
          NGramProfile profile = new NGramProfile(lang, minLength, maxLength);
          try {
            profile.load(is);
            languages.add(profile);
            supportedLanguages.add(lang);
            List<NGramEntry> ngrams = profile.getSorted();
            for (int i=0; i<ngrams.size(); i++) {
                NGramEntry entry = ngrams.get(i);
View Full Code Here

Examples of org.olat.ims.cp.CPManager.load()

    // acquire lock for resource
    lock = CoordinatorManager.getCoordinator().getLocker().acquireLock(ores, ureq.getIdentity(), null);

    CPManager cpMgm = CPManager.getInstance();

    this.cp = cpMgm.load(cpContainer, ores);

    String errorString = cp.getLastError();
    if (errorString == null) {
      if (lock.isSuccess()) {
        initDefaultView(ureq, wControl);
View Full Code Here

Examples of org.omnaest.utils.propertyfile.PropertyFile.load()

   
    //
    assertTrue( propertyFile.getFile().exists() );
   
    //
    propertyFile.load();
    PropertyFileContent propertyFileContent = propertyFile.getPropertyFileContent();
   
    //
    assertTrue( propertyFileContent.hasPropertyKeyAndValueList( propertyKey, propertyValueList ) );
   
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.