Package com.onec.desktop
Class OnecDesktopAutoConfiguration
java.lang.Object
com.onec.desktop.OnecDesktopAutoConfiguration
@AutoConfiguration
@ConditionalOnWebApplication
@EnableConfigurationProperties(DesktopProperties.class)
@ConditionalOnProperty(prefix="onec.desktop",
name="enabled",
havingValue="true",
matchIfMissing=true)
public class OnecDesktopAutoConfiguration
extends Object
Wires desktop mode: exposes the manifest/readiness endpoints the Tauri shell
drives, and supplies a default
DesktopApp when the application defines
none. Active whenever the starter is on a web classpath and
onec.desktop.enabled is not explicitly false.
H2 relocation into the OS app-data directory is handled earlier, by
DesktopEnvironmentPostProcessor, since it must run before the
datasource is bound.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefaultDesktopApp(org.springframework.core.env.Environment environment) A sensible default shell so dropping the starter in is enough to ship a window.desktopManifest(DesktopApp desktopApp, org.springframework.core.env.Environment environment) desktopManifestController(DesktopManifest manifest)
-
Constructor Details
-
OnecDesktopAutoConfiguration
public OnecDesktopAutoConfiguration()
-
-
Method Details
-
defaultDesktopApp
@Bean @ConditionalOnMissingBean public DesktopApp defaultDesktopApp(org.springframework.core.env.Environment environment) A sensible default shell so dropping the starter in is enough to ship a window. -
desktopManifest
@Bean public DesktopManifest desktopManifest(DesktopApp desktopApp, org.springframework.core.env.Environment environment) -
desktopManifestController
-