@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.| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String[] |
library
JavaScript libraries to import.
|
java.lang.String[] |
module
Names of modules to import.
|
java.lang.String[] |
stack
JavaScript Stacks to import.
|
java.lang.String[] |
stylesheet
Stylesheets to import.
|
public abstract java.lang.String[] stack
public abstract java.lang.String[] library
public abstract java.lang.String[] stylesheet
public abstract java.lang.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)${project.version} - Copyright © 2003-2015 The Apache Software Foundation.