本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例6: getDojoResources
import com.ibm.xsp.minifier.DojoResource; //导入依赖的package包/类
@SuppressWarnings("unchecked") //$NON-NLS-1$
private Map<String, DojoResource> getDojoResources(DojoLibrary dojoLibrary) {
return dojoLibrary.getDojoResources();
}