public class ResourceCategoryRegistryImpl extends Object implements ResourceCategoryRegistry
Constructor and Description |
---|
ResourceCategoryRegistryImpl(ConcatenatedResourceStore jsConcatenatedResourceStore,
ConcatenatedResourceStore cssConcatenatedResourceStore)
Create a new registry.
|
Modifier and Type | Method and Description |
---|---|
void |
registerCssCategoryExtensions(String bundleName,
Map<String,List<String>> resources)
Extend some of the CSS categories with CSS files of a plugin.
|
void |
registerCssResourceExtension(String bundleName,
ResourceExtension extension)
Add the CSS resource category extensions and definitions defined in the extension.
|
void |
registerJsCategoryExtensions(String bundleName,
Map<String,List<String>> resources)
Extend some of the JavaScript categories with JavaScript files of a plugin.
|
void |
registerJsResourceExtension(String bundleName,
ResourceExtension extension)
Add the JavaScript resource category extensions and definitions defined in the extension.
|
void |
unregisterCssCategories(String bundleName)
Remove all CSS extensions and definitions added by the given bundle.
|
void |
unregisterJsCategories(String bundleName)
Remove all JavaScript extensions and definitions added by the given bundle.
|
public ResourceCategoryRegistryImpl(ConcatenatedResourceStore jsConcatenatedResourceStore, ConcatenatedResourceStore cssConcatenatedResourceStore)
jsConcatenatedResourceStore
- the store that manages the JavaScript resourcescssConcatenatedResourceStore
- the store that manages the CSS resourcespublic void registerCssCategoryExtensions(String bundleName, Map<String,List<String>> resources) throws ConcatenatedResourceStoreException
ResourceCategoryRegistry
registerCssCategoryExtensions
in interface ResourceCategoryRegistry
bundleName
- the name of the bundle for which the resources should be addedresources
- mapping from category name to a list of resourcesConcatenatedResourceStoreException
- in case a category could not be updatedpublic void registerCssResourceExtension(String bundleName, ResourceExtension extension) throws ConcatenatedResourceStoreException
ResourceCategoryRegistry
registerCssResourceExtension
in interface ResourceCategoryRegistry
bundleName
- the name of the bundle that provides the resource extensionextension
- the object containing the category extensions and definitionsConcatenatedResourceStoreException
- in case a category could not be updated or addedpublic void registerJsCategoryExtensions(String bundleName, Map<String,List<String>> resources) throws ConcatenatedResourceStoreException
ResourceCategoryRegistry
registerJsCategoryExtensions
in interface ResourceCategoryRegistry
bundleName
- the name of the bundle for which the resources should be addedresources
- mapping from category name to a list of resourcesConcatenatedResourceStoreException
- in case a category could not be updatedpublic void registerJsResourceExtension(String bundleName, ResourceExtension extension) throws ConcatenatedResourceStoreException
ResourceCategoryRegistry
registerJsResourceExtension
in interface ResourceCategoryRegistry
bundleName
- the name of the bundle that provides the resource extensionextension
- the object containing the category extensions and definitionsConcatenatedResourceStoreException
- in case a category could not be updated or addedpublic void unregisterCssCategories(String bundleName)
ResourceCategoryRegistry
unregisterCssCategories
in interface ResourceCategoryRegistry
bundleName
- the name of the bundlepublic void unregisterJsCategories(String bundleName)
ResourceCategoryRegistry
unregisterJsCategories
in interface ResourceCategoryRegistry
bundleName
- the name of the bundleCopyright © 2019 Communote team. All rights reserved.