Annotation Type Import


  • @Target({TYPE,METHOD})
    @Retention(RUNTIME)
    @Documented
    @UseWith({COMPONENT,MIXIN,PAGE})
    public @interface Import
    Annotations to control the importing of JavaScript stacks and libraries as well as stylesheets. This annotation may be placed on a class, in which case importing will occur as part of the 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.
    Since:
    5.2.0
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String[] library
      JavaScript libraries to import.
      String[] module
      Names of modules to import.
      String[] stack
      JavaScript Stacks to import.
      String[] stylesheet
      Stylesheets to import.