本文整理汇总了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()]));
}
示例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()]));
}
示例3: getScriptLoader
import org.springframework.extensions.webscripts.ScriptLoader; //导入依赖的package包/类
public ScriptLoader getScriptLoader()
{
return new RepoScriptLoader();
}
示例4: ScriptContentAdapter
import org.springframework.extensions.webscripts.ScriptLoader; //导入依赖的package包/类
public ScriptContentAdapter(final ScriptContent scriptContent, final ScriptLoader scriptLoader)
{
this.scriptContent = scriptContent;
this.scriptLoader = scriptLoader;
}
示例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;
}
示例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;
}