public final class Injector extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
ensureCssInjected(AbstractInjectableResource resource)
Injects a CSS style resource if not injected yet.
|
static void |
ensureInjected(AbstractInjectableResource resource)
Injects a script resource if not injected yet.
|
static boolean |
isInjected(AbstractInjectableResource resource)
Returns
true if the script or style resource has been already injected. |
public static void ensureInjected(AbstractInjectableResource resource)
resource - script resourcepublic static void ensureCssInjected(AbstractInjectableResource resource)
resource - CSS style resourcepublic static boolean isInjected(AbstractInjectableResource resource)
true if the script or style resource has been already injected.resource - script or CSS style resourcetrue if the script or style resource has been already injected