@JsType(namespace="hal.core") public class ExtensionRegistry extends Object implements ApplicationReadyEvent.ApplicationReadyHandler
| Modifier and Type | Class and Description |
|---|---|
static interface |
ExtensionRegistry.MetadataCallback |
| Constructor and Description |
|---|
ExtensionRegistry(com.google.web.bindery.event.shared.EventBus eventBus) |
| Modifier and Type | Method and Description |
|---|---|
void |
inject(String script,
List<String> stylesheets) |
void |
jsInject(String script,
String[] stylesheets)
Injects the script and stylesheets of an extension.
|
void |
onApplicationReady(ApplicationReadyEvent event) |
void |
register(Extension extension)
Registers an extension.
|
void |
verifyMetadata(String url,
ExtensionRegistry.MetadataCallback metadataCallback) |
boolean |
verifyScript(String script) |
@Inject @JsIgnore public ExtensionRegistry(com.google.web.bindery.event.shared.EventBus eventBus)
@JsIgnore public void verifyMetadata(String url, ExtensionRegistry.MetadataCallback metadataCallback)
@JsIgnore public boolean verifyScript(String script)
@JsIgnore public void onApplicationReady(ApplicationReadyEvent event)
onApplicationReady in interface ApplicationReadyEvent.ApplicationReadyHandlerpublic void register(Extension extension)
If the extension is already registered, this method will do nothing.
extension - the extension to register.@JsMethod(name="inject") public void jsInject(String script, String[] stylesheets)
script - the extension's script.stylesheets - an optional list of stylesheets.Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.