Package org.xj3d.ui.construct.ogl
Class ShutdownManager
java.lang.Object
org.xj3d.ui.construct.ogl.ShutdownManager
- All Implemented Interfaces:
Runnable
,BrowserCoreListener
A function module that performs a controlled and complete shutdown
of the browser constructs internals when either the browser or the
application are exiting.
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OGLConstruct
The construct instanceprotected Thread
Thread used to handle the system shutdown hook -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
The browser core has been disposed, all resources may be freed.void
browserInitialized
(VRMLScene scene) Ignored.void
Ignored.void
run()
The shutdown threadprotected void
shutdown
(boolean isShutdownThread) Do an orderly shutdown of the browser's resource managersvoid
urlLoadFailed
(String msg) Ignored.
-
Field Details
-
construct
The construct instance -
shutdownThread
Thread used to handle the system shutdown hook
-
-
Constructor Details
-
ShutdownManager
Constructor- Parameters:
construct
- The OGLConstruct instance to manage
-
-
Method Details
-
run
-
browserShutdown
public void browserShutdown()Ignored. Notification that the browser core is shutting down the current content.- Specified by:
browserShutdown
in interfaceBrowserCoreListener
-
browserDisposed
public void browserDisposed()The browser core has been disposed, all resources may be freed.- Specified by:
browserDisposed
in interfaceBrowserCoreListener
-
urlLoadFailed
Ignored. The browser core tried to load a URL and failed.- Specified by:
urlLoadFailed
in interfaceBrowserCoreListener
- Parameters:
msg
- An error message describing the failure
-
browserInitialized
Ignored. Notification that a world has been loaded.- Specified by:
browserInitialized
in interfaceBrowserCoreListener
- Parameters:
scene
- The new scene that has been loaded
-
shutdown
protected void shutdown(boolean isShutdownThread) Do an orderly shutdown of the browser's resource managers- Parameters:
isShutdownThread
- Is this method being called from the Runtime shutdown hook.
-