本文整理汇总了Java中org.springframework.extensions.surf.extensibility.BasicExtensionModule类的典型用法代码示例。如果您正苦于以下问题:Java BasicExtensionModule类的具体用法?Java BasicExtensionModule怎么用?Java BasicExtensionModule使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BasicExtensionModule类属于org.springframework.extensions.surf.extensibility包,在下文中一共展示了BasicExtensionModule类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getEvaluatedModules
import org.springframework.extensions.surf.extensibility.BasicExtensionModule; //导入依赖的package包/类
/**
* Retrieve the list of {@link org.springframework.extensions.surf.types.ExtensionModule} instances that have been evaluated as
* applicable
* for the current request. If this list has not yet been populated then use the
* {@link org.springframework.extensions.surf.extensibility.ExtensibilityModuleHandler}
* configured in the Spring application context to evaluate them.
*
* @return A list of {@link org.springframework.extensions.surf.types.ExtensionModule} instances that are applicable to the current
* request.
*/
public List<BasicExtensionModule> getEvaluatedModules()
{
List<BasicExtensionModule> evaluatedModules = this.evaluatedModules.get();
if (evaluatedModules == null)
{
if (this.extensibilityModuleHandler == null)
{
if (LOGGER.isErrorEnabled())
{
LOGGER.error(
"No 'extensibilityModuleHandler' has been configured for this request context. Extensions cannot be processed");
}
evaluatedModules = new ArrayList<>();
}
else
{
evaluatedModules = this.extensibilityModuleHandler.getExtensionModules();
}
this.evaluatedModules.set(evaluatedModules);
}
return evaluatedModules;
}
示例2: getExtendingModuleFiles
import org.springframework.extensions.surf.extensibility.BasicExtensionModule; //导入依赖的package包/类
/**
*
* Retrieves an files for the evaluated modules that are extending the WebScript files being processed.
*
*/
@Override
public List<String> getExtendingModuleFiles(final String pathBeingProcessed)
{
final List<String> extendingModuleFiles = new ArrayList<>();
for (final BasicExtensionModule module : this.getEvaluatedModules())
{
extendingModuleFiles.addAll(this.extensibilityModuleHandler.getExtendingModuleFiles(module, pathBeingProcessed));
}
return extendingModuleFiles;
}
示例3: getExtendingModuleFiles
import org.springframework.extensions.surf.extensibility.BasicExtensionModule; //导入依赖的package包/类
/**
* <p>Retrieves an files for the evaluated modules that are extending the WebScript files being processed.</p>
*/
public List<String> getExtendingModuleFiles(String pathBeingProcessed)
{
List<String> extendingModuleFiles = new ArrayList<String>();
for (BasicExtensionModule module: this.getEvaluatedModules())
{
extendingModuleFiles.addAll(this.extensibilityModuleHandler.getExtendingModuleFiles(module, pathBeingProcessed));
}
return extendingModuleFiles;
}
示例4: getEvaluatedModules
import org.springframework.extensions.surf.extensibility.BasicExtensionModule; //导入依赖的package包/类
/**
* <p>Retrieve the list of {@link org.springframework.extensions.surf.types.ExtensionModule} instances that have been evaluated as applicable
* for the current request. If this list has not yet been populated then use the {@link org.springframework.extensions.surf.extensibility.ExtensibilityModuleHandler}
* configured in the Spring application context to evaluate them.</p>
*
* @return A list of {@link org.springframework.extensions.surf.types.ExtensionModule} instances that are applicable to the current request.
*/
public List<BasicExtensionModule> getEvaluatedModules()
{
List<BasicExtensionModule> evaluatedModules = this.evaluatedModules.get();
if (evaluatedModules == null)
{
if (this.extensibilityModuleHandler == null)
{
if (logger.isErrorEnabled())
{
logger.error("No 'extensibilityModuleHandler' has been configured for this request context. Extensions cannot be processed");
}
evaluatedModules = new ArrayList<BasicExtensionModule>();
this.evaluatedModules.set(evaluatedModules);
}
else
{
evaluatedModules = this.extensibilityModuleHandler.getExtensionModules();
this.evaluatedModules.set(evaluatedModules);
}
}
return evaluatedModules;
}