本文整理匯總了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;
}