JavaScriptSupport is normally accessed within a component by using the {@link Environmental} annotation on acomponent field. In addition, JavaScriptSupport may also be accessed as a service (the service {@linkplain EnvironmentalShadowBuilder internally delegates to the current environmental instance}), which is useful for service-layer objects.
The term "import" is used on many methods to indicate that the indicated resource (stack, library or stylesheet) will only be added to the final Document once.
The name is slightly a misnomer, since there's a side-line of {@linkplain #importStylesheet(Asset,StylesheetOptions) importing stylesheets} as well. @since 5.2.0
|
|