Class ExtensionRegistry
java.lang.Object
org.onehippo.cms7.services.extension.ExtensionRegistry
Registry of Hippo CMS extensions provided via classloaders other than the main repository classloader. This is
typically used to register HST site delivery code loaded via a separate WAR file.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionEvent
getExtension
(String hstRoot) static Map<String,
ExtensionEvent> static void
register
(ExtensionEvent extensionEvent, ExtensionRegistry.ExtensionType type) Register a extension eventstatic void
unregister
(String hstRoot) Unregister extension
-
Constructor Details
-
ExtensionRegistry
public ExtensionRegistry()
-
-
Method Details
-
register
Register a extension event- Parameters:
type
- theWebAppType
to which thectx
belongs. Not allowed to benull
- Throws:
IllegalStateException
- if the extension already has been registered by its hst root
-
unregister
Unregister extension- Parameters:
hstRoot
- the hst root to unregister- Throws:
IllegalStateException
- if the extension has not been registered by its hst root
-
getExtension
- Parameters:
hstRoot
- The hst root for which of the extension- Returns:
- the extension registered under the extension's hst root
-
getHstRoots
- Returns:
- unmodifiable map of all currently registered extensions mapped by their hst root
-