public class ExtensionRegistry extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ExtensionRegistry.ExtensionType |
Constructor and Description |
---|
ExtensionRegistry() |
Modifier and Type | Method and Description |
---|---|
static ExtensionEvent |
getExtension(String hstRoot) |
static Map<String,ExtensionEvent> |
getHstRoots() |
static void |
register(ExtensionEvent extensionEvent,
ExtensionRegistry.ExtensionType type)
Register a extension event
|
static void |
unregister(String hstRoot)
Unregister extension
|
public static void register(ExtensionEvent extensionEvent, ExtensionRegistry.ExtensionType type)
type
- the WebAppType
to which the ctx
belongs. Not allowed to be null
IllegalStateException
- if the extension already has been registered by its hst rootpublic static void unregister(String hstRoot)
hstRoot
- the hst root to unregisterIllegalStateException
- if the extension has not been registered by its hst rootpublic static ExtensionEvent getExtension(String hstRoot)
hstRoot
- The hst root for which of the extensionpublic static Map<String,ExtensionEvent> getHstRoots()
Copyright © 2012–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.