Skip to content

Restart

Restart makes deployment results that require a lifecycle refresh or process reload take effect. Jugg decides whether to restart the Activity, restart the app, or keep the current process running based on deployment data, Run configuration, and the Debug entry point.

Restart triggers

ScenarioCurrent supportRestart behavior
Refresh the current UI after Apply ChangesSupportedRestarts the Activity
Hot Fix class or push-only overlaySupportedRestarts the app
User selects always restartSupportedRestarts the app after deployment succeeds
Debug executor startsSupportedRestarts the app after successful deployment, then attaches the debugger
Detect JVMTI after the first agent pushSupportedRestarts the app so the system loads the startup agent
Start the app after installSupportedThe deployment flow starts the app after installation

How it takes effect

text
Generate deployment data
  -> Determine the deployment action and lifecycle boundary
  -> Push the JVMTI agent when needed
  -> restart app / restart activity / start app according to deployment type and user settings
  -> Attach the Java debugger in Debug scenarios

Hot Fix classes, push-only overlays, and some process-level caches require an app restart. Regular non-empty incremental deployments that do not require an app restart recreate the Activity. The Debug entry point restarts the app after deployment by default so that the debugging session starts from the new process state.

Relationship to deployment strategies

StrategyRestart behavior
Code SwapDoes not require an app restart; a regular non-empty deployment still usually recreates the Activity
Full SwapRestarts the Activity
Hot FixRestarts the app
Clean ReinstallStarts the app after reinstallation
JVMTI agent updateUsually requires an app restart before detection