@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented @UseWith(value={COMPONENT,MIXIN,PAGE}) public @interface Import
SetupRender render phase.
Alternately, the annotation maybe placed on any method (though typically it will be placed on a render phase
method) and the import operations will be associated of that method.
Use of this annotation is translated into invocations against the JavaScriptSupport
environmental; all imports there will implicitly import the core stack.
Assets are localized during the PageLifecycleAdapter.containingPageDidLoad() lifecycle
method.public abstract String[] stack
public abstract String[] stylesheet
public abstract String[] module
flash/gordon would map to the file
META-INF/modules/flash/gordon.js. Alternately a function name can be included, after a colon seperator.
e.g., flash/gordon:setup.
Module initializations specified this way may not have an parameters, so they are typically doing single-use
setup.ModuleManager,
JavaScriptSupport.require(String)5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.