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 OGLConstructThe construct instanceprotected ThreadThread used to handle the system shutdown hook -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThe browser core has been disposed, all resources may be freed.voidbrowserInitialized(VRMLScene scene) Ignored.voidIgnored.voidrun()The shutdown threadprotected voidshutdown(boolean isShutdownThread) Do an orderly shutdown of the browser's resource managersvoidurlLoadFailed(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:
browserShutdownin interfaceBrowserCoreListener
-
browserDisposed
public void browserDisposed()The browser core has been disposed, all resources may be freed.- Specified by:
browserDisposedin interfaceBrowserCoreListener
-
urlLoadFailed
Ignored. The browser core tried to load a URL and failed.- Specified by:
urlLoadFailedin interfaceBrowserCoreListener- Parameters:
msg- An error message describing the failure
-
browserInitialized
Ignored. Notification that a world has been loaded.- Specified by:
browserInitializedin 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.
-