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


Java ScriptLoader类代码示例

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


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

示例1: afterPropertiesSet

import org.springframework.extensions.webscripts.ScriptLoader; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void afterPropertiesSet()
{
    super.afterPropertiesSet();
    PropertyCheck.mandatory(this, "searchPath", this.searchPath);

    final List<ScriptLoader> loaders = new ArrayList<ScriptLoader>(this.searchPath.getStores().size());
    for (final Store apiStore : this.searchPath.getStores())
    {
        final ScriptLoader loader = apiStore.getScriptLoader();
        if (loader == null)
        {
            throw new WebScriptException(MessageFormat.format("Unable to retrieve script loader for Web Script store {0}",
                    apiStore.getBasePath()));
        }
        loaders.add(loader);
    }
    this.scriptLoader = new MultiScriptLoader(loaders.toArray(new ScriptLoader[loaders.size()]));
}
 
开发者ID:AFaust,项目名称:alfresco-enhanced-script-environment,代码行数:23,代码来源:StoreScriptLocator.java

示例2: init

import org.springframework.extensions.webscripts.ScriptLoader; //导入依赖的package包/类
/**
 * Register script loader from each Web Script Store with Script Processor
 */
private void init()
{
    List<ScriptLoader> loaders = new ArrayList<ScriptLoader>();
    for (Store apiStore : searchPath.getStores())
    {
        ScriptLoader loader = apiStore.getScriptLoader();
        if (loader == null)
        {
            throw new WebScriptException("Unable to retrieve script loader for Web Script store " + apiStore.getBasePath());
        }
        loaders.add(loader);
    }
    scriptLoader = new MultiScriptLoader(loaders.toArray(new ScriptLoader[loaders.size()]));
}
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:18,代码来源:RepositoryScriptProcessor.java

示例3: getScriptLoader

import org.springframework.extensions.webscripts.ScriptLoader; //导入依赖的package包/类
public ScriptLoader getScriptLoader()
{
    return new RepoScriptLoader();
}
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:5,代码来源:RepoStore.java

示例4: ScriptContentAdapter

import org.springframework.extensions.webscripts.ScriptLoader; //导入依赖的package包/类
public ScriptContentAdapter(final ScriptContent scriptContent, final ScriptLoader scriptLoader)
{
    this.scriptContent = scriptContent;
    this.scriptLoader = scriptLoader;
}
 
开发者ID:AFaust,项目名称:alfresco-enhanced-script-environment,代码行数:6,代码来源:ScriptContentAdapter.java

示例5: setScriptLoader

import org.springframework.extensions.webscripts.ScriptLoader; //导入依赖的package包/类
/**
 * @param scriptLoader
 *            the scriptLoader to set
 */
public final void setScriptLoader(final ScriptLoader scriptLoader)
{
    this.scriptLoader = scriptLoader;
}
 
开发者ID:AFaust,项目名称:alfresco-enhanced-script-environment,代码行数:9,代码来源:ClasspathScriptLocator.java

示例6: setStandardScriptLoader

import org.springframework.extensions.webscripts.ScriptLoader; //导入依赖的package包/类
/**
 * @param standardScriptLoader
 *            the standardScriptLoader to set
 */
public final void setStandardScriptLoader(final ScriptLoader standardScriptLoader)
{
    this.standardScriptLoader = standardScriptLoader;
}
 
开发者ID:AFaust,项目名称:alfresco-enhanced-script-environment,代码行数:9,代码来源:EnhancedJSScriptProcessor.java


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