Annotation Type Import

  • @Target({TYPE,METHOD})
    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.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element 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.