public interface ExtensibilityModuleHandler
Classes implementing this interface should be able to determine paths to the files provided by
a module that extend a ExtensibilityModel being processed. They should also be able to
return a String representing the HTML instructions for importing client side JavaScript and CSS
resource dependencies required by the extending modules.
| Modifier and Type | Method and Description |
|---|---|
List<ExtensionModule> |
evaluateModules(RequestContext context)
Evaluates the
ExtensionModule instances that are applicable for the supplied
RequestContext. |
List<String> |
getExtendingModuleFiles(ExtensionModule module,
String pathBeingProcessed)
Returns a
List of the files that should be applied to an ExtensibilityModel
being processed. |
Map<String,LinkedHashSet<String>> |
getModuleCssDeps(ExtensionModule module,
String path)
Returns the CSS dependencies for the current extension module for the supplied path.
|
LinkedHashSet<String> |
getModuleJsDeps(ExtensionModule module,
String path)
Returns the JavaScript dependencies for the current extension module for the supplied path.
|
List<ExtensionModule> evaluateModules(RequestContext context)
Evaluates the ExtensionModule instances that are applicable for the supplied
RequestContext.
context - The RequestContext to evaluate modules for.List of ExtensionModule instances.LinkedHashSet<String> getModuleJsDeps(ExtensionModule module, String path)
Returns the JavaScript dependencies for the current extension module for the supplied path.
module - The module to retrieve JavaScript dependencies from.path - The current path being processed. This determines which dependencies are mapped.Map<String,LinkedHashSet<String>> getModuleCssDeps(ExtensionModule module, String path)
Returns the CSS dependencies for the current extension module for the supplied path.
module - The module to retrieve CSS dependencies from.path - The current path being processed. This determines which dependencies are mapped.List<String> getExtendingModuleFiles(ExtensionModule module, String pathBeingProcessed)
Returns a List of the files that should be applied to an ExtensibilityModel
being processed.
pathBeingProcessed - The path of the file being processed. This will typically be a FreeMarker
template, JavaScript controller or NLS properties file.List of the files that extend the current file being processed.Copyright © 2005–2016 Alfresco Software. All rights reserved.