Interface PerspectiveContext
-
- All Known Implementing Classes:
GatewayHook.PerspectiveGatewayContext
public interface PerspectiveContext
Provides a way to find resources shared by all Perspective sessions.
-
-
Method Summary
-
-
-
Method Detail
-
getGatewayContext
GatewayContext getGatewayContext()
-
getExecutorService
java.util.concurrent.ExecutorService getExecutorService()
- Returns:
- The shared executor service used by all perspective sessions. Blocking work may be done on this thread pool.
-
getScheduler
java.util.concurrent.ScheduledExecutorService getScheduler()
- Returns:
- The shared scheduled executor. NO BLOCKING WORK may be done on this pool.
-
getBindingRegistry
BindingRegistry getBindingRegistry()
- Returns:
- The registry where binding and transform implementations are kept
-
getActionRegistry
ActionRegistry getActionRegistry()
- Returns:
- The registry where action implementations are kept.
-
getProjectCache
PerspectiveProjectCache getProjectCache()
- Returns:
- The cache that provides access to perspective projects.
-
getEventBus
com.google.common.eventbus.EventBus getEventBus()
AnEventBus
for the entire Perspective system - events that are gateway-wide.
-
getThemeManager
ThemeManager getThemeManager()
- Returns:
- The Theme Manager
-
getIconManager
IconManager getIconManager()
- Returns:
- The Icon Manager
-
getFontManager
FontManager getFontManager()
- Returns:
- The Font Manager
-
getSharedGson
com.inductiveautomation.ignition.common.gson.Gson getSharedGson()
-
getSessionTimeout
default long getSessionTimeout()
Timeout, in milliseconds, after the last page of a session is closed, should the session expire
-
getSessionMonitor
PerspectiveSessionMonitor getSessionMonitor()
-
getScriptCache
CompiledScriptCache getScriptCache()
-
getComponentRegistry
ComponentRegistry getComponentRegistry()
-
getFetchableCache
FetchableCache getFetchableCache()
-
getComponentModelDelegateRegistry
ComponentModelDelegateRegistry getComponentModelDelegateRegistry()
- Returns:
- the model delegate registry (use to register gateway component models into the store/model messaging API)
-
get
static PerspectiveContext get(GatewayContext context)
-
-