Package io.jenkins.blueocean.commons
Class PageStatePreloader
java.lang.Object
io.jenkins.blueocean.commons.PageStatePreloader
- All Implemented Interfaces:
ExtensionPoint
Page state "preloader" extension point.
Allows the loading page's JavaScript blueocean global scope to be pre-populated with data that we know the page is going to need, thereby providing a mechanism for eliminating the request overhead for that data.
- Author:
- tom.fennelly@gmail.com
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionList<PageStatePreloader> all()abstract StringGet the state JSON to be set in the page's JavaScript blueocean global scope.abstract StringGet the JavaScript object graph path at which the state is to be stored.
-
Constructor Details
-
PageStatePreloader
public PageStatePreloader()
-
-
Method Details
-
getStatePropertyPath
Get the JavaScript object graph path at which the state is to be stored.- Returns:
- The JavaScript object graph path at which the state is to be stored.
-
getStateJson
Get the state JSON to be set in the page's JavaScript blueocean global scope.- Returns:
- The state JSON to be set in the page's JavaScript blueocean global
scope, or
nullif no data is to be set of this page.
-
all
-