Class ShuttingDownHandler.ShuttingDownArguments
- java.lang.Object
-
- com.tick42.glue.desktop.applications.ShuttingDownHandler.ShuttingDownArguments
-
- Enclosing interface:
- ShuttingDownHandler
public static final class ShuttingDownHandler.ShuttingDownArguments extends Object
Arguments describing shutting down.- Since:
- 1.4.12
-
-
Constructor Summary
Constructors Constructor Description ShuttingDownArguments(Instance initiator, String reason, boolean restarting)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstancegetInitiator()Returns the interop instance of the application that initiated the shutdown.StringgetReason()Returns an optional string describing the reason for shutting down.booleanisRestarting()A flag indicating if this is a restart or complete shutdown.
-
-
-
Method Detail
-
getInitiator
public Instance getInitiator()
Returns the interop instance of the application that initiated the shutdown.- Returns:
- an
Instanceof the application initiating shut down ornull
-
getReason
public String getReason()
Returns an optional string describing the reason for shutting down.- Returns:
- a
Stringdescribing the shutdown reason ornull
-
isRestarting
public boolean isRestarting()
A flag indicating if this is a restart or complete shutdown.- Returns:
trueif Glue Desktop is restarting andfalseotherwise
-
-