当前位置: 首页>>代码示例>>Java>>正文


Java DojoResource类代码示例

本文整理汇总了Java中com.ibm.xsp.minifier.DojoResource的典型用法代码示例。如果您正苦于以下问题:Java DojoResource类的具体用法?Java DojoResource怎么用?Java DojoResource使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


DojoResource类属于com.ibm.xsp.minifier包,在下文中一共展示了DojoResource类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getDojoResource

import com.ibm.xsp.minifier.DojoResource; //导入依赖的package包/类
@Override
public DojoResource getDojoResource(String name, DojoLibrary dojoLibrary) {
    Map<String,DojoResource> dojoResources = (Map<String,DojoResource>)dojoLibrary.getDojoResources();
    
    DojoResource r = dojoResources.get(name);
    if(r==null) {
        synchronized(this) {
            r = dojoResources.get(name);
            if(r==null) {
                r = loadDojoResource(name,dojoLibrary);
                if(r!=null) {
                    dojoResources.put(name, r);
                }
            }
        }
    }
    return r;
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:19,代码来源:DWALoader.java

示例2: getDojoResource

import com.ibm.xsp.minifier.DojoResource; //导入依赖的package包/类
@Override
public DojoResource getDojoResource(String name, DojoLibrary dojoLibrary) {
	Map<String,DojoResource> dojoResources = getDojoResources(dojoLibrary);
   	
	DojoResource r = dojoResources.get(name);
	if(r==null) {
		synchronized(this) {
			r = dojoResources.get(name);
			if(r==null) {
				r = loadDojoResource(name,dojoLibrary);
				if(r!=null) {
					dojoResources.put(name, r);
				}
			}
		}
	}
	return r;
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:19,代码来源:ExtLibLoader.java

示例3: loadDojoResource

import com.ibm.xsp.minifier.DojoResource; //导入依赖的package包/类
protected DojoResource loadDojoResource(String name, DojoLibrary dojoLibrary) {
    if(name.startsWith("extlib.")) { //$NON-NLS-1$
        List<ExtLibLoaderExtension> extensions = ExtLibLoaderExtension.getExtensions();
	    int size = extensions.size();
	    for(int i=0; i<size; i++) {
	        DojoResource r = loadDojoResource(name, dojoLibrary, extensions.get(i));
	        if(r!=null) {
	            return r;
	        }
	    }
	    return null;
    }
    // Look for resources...
    if( name.startsWith("!extlib.")) { // $NON-NLS-1$
        return new ExtLibDojoLocaleResource(dojoLibrary,name,ExtlibResourceProvider.BUNDLE_RES_PATH);
    }
    
    return null;
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:20,代码来源:ExtLibLoader.java

示例4: getDojoResource

import com.ibm.xsp.minifier.DojoResource; //导入依赖的package包/类
@Override
public DojoResource getDojoResource(String name, DojoLibrary dojoLibrary) throws IOException {
	@SuppressWarnings("unchecked")
	Map<String, DojoResource> dojoResources = (Map<String, DojoResource>) dojoLibrary.getDojoResources();

	DojoResource r = dojoResources.get(name);
	if (r == null) {
		synchronized (this) {
			r = dojoResources.get(name);
			if (r == null) {
				r = loadDojoResource(name, dojoLibrary);
				if (r != null) {
					dojoResources.put(name, r);
				}
			}
		}
	}
	return r;

}
 
开发者ID:OpenNTF,项目名称:XPagesToolkit,代码行数:21,代码来源:AbstractResourceLoader.java

示例5: loadDojoResource

import com.ibm.xsp.minifier.DojoResource; //导入依赖的package包/类
protected DojoResource loadDojoResource(String name, DojoLibrary dojoLibrary) {
    if(name.startsWith("dwa.")) { // $NON-NLS-1$
        String dojoName = name;
        String path = ExtlibResourceProvider.DWA_RES_PATH+StringUtil.replace(dojoName, '.', '/')+".js"; // $NON-NLS-1$
        URL u = ExtLibUtil.getResourceURL(DominoPluginActivator.instance.getBundle(), path);
        if(u!=null) {
            return new UrlDojoResource(dojoLibrary,name,u);
        }
    }
    // Look for resources...
    if( name.startsWith("!dwa.")) { // $NON-NLS-1$
        return new DWADojoLocaleResource(dojoLibrary,name,ExtlibResourceProvider.DWA_RES_PATH);
    }
    return null;
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:16,代码来源:DWALoader.java

示例6: getDojoResources

import com.ibm.xsp.minifier.DojoResource; //导入依赖的package包/类
@SuppressWarnings("unchecked") //$NON-NLS-1$
private Map<String, DojoResource> getDojoResources(DojoLibrary dojoLibrary) {
    return dojoLibrary.getDojoResources();
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:5,代码来源:ExtLibLoader.java


注:本文中的com.ibm.xsp.minifier.DojoResource类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。