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


Java BasicExtensionModule类代码示例

本文整理汇总了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;
}
 
开发者ID:Acosix,项目名称:alfresco-utility,代码行数:33,代码来源:TenantExtensibilityContainer.java

示例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;
}
 
开发者ID:Acosix,项目名称:alfresco-utility,代码行数:16,代码来源:TenantExtensibilityContainer.java

示例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;

    }
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:24,代码来源:ExtensibilityContainer.java

示例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;

    }
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:58,代码来源:ExtensibilityContainer.java


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