public class ResourceExtension extends Object
Pojo describing an extension that allows a plugin to provide additional JavaScript or CSS that should be included into different pages.
The inclusion into a page is achieved with the help of categories for JavaScript and CSS. A Category for JavaScript or CSS is identified by a name and is associated with a collection of resources. The author of a page decides which categories and thus which resources are required for the page. This extension provides means to extend existing categories with additional resources or define new ones.
| Constructor and Description |
|---|
ResourceExtension() |
| Modifier and Type | Method and Description |
|---|---|
Set<ResourceCategoryDefinition> |
getDefinitions()
Return the definitions of categories for resources.
|
Map<String,List<String>> |
getExtensions()
Return the category names that should be extended with additional resources provided by the
plugin.
|
void |
setDefinitions(Set<ResourceCategoryDefinition> definitions) |
void |
setExtensions(Map<String,List<String>> extensions) |
public Set<ResourceCategoryDefinition> getDefinitions()
public Map<String,List<String>> getExtensions()
public void setDefinitions(Set<ResourceCategoryDefinition> definitions)
definitions - the category definitions to set or null if the plugin does not need to define new
categoriesgetDefinitions()public void setExtensions(Map<String,List<String>> extensions)
extensions - a mapping from category name to a collection of resources that should be added to
that category. Can be null if the plugin does not need to extend categories.getExtensions()Copyright © 2019 Communote team. All rights reserved.