當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。