eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'StandaloneStartupHeadless':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: StandaloneStartupHeadless


Inheritance:

   Object
   |
   +--StandaloneStartup
      |
      +--StandaloneStartupHeadless

Package:
stx:libbasic
Category:
System-Support
Version:
rev: 1.2 date: 2016/10/14 19:33:52
user: cg
file: StandaloneStartupHeadless.st directory: libbasic
module: stx stc-classLibrary: libbasic
Author:
Claus Gittinger

Description:


When smalltalk is started as IDE (stx), the show starts in Smalltalk>>start.
In contrast, when a standAlone app is linked, 
the show starts in the startup class's start method.

This class is an abstract, subclassable template for a standalone headless-application's startup.
For your own stand alone programs, define a subclass of this, 
and redefine the #main: method there.
(of course, the other methods can also be redefined.)


Related information:

    Smalltalk
    GetOpt
    ReadEvalPrintLoop
    StandaloneStartup

Class protocol:

queries
o  isAbstract

o  isHeadless
this is invoked early by Smalltalk>>mainStartup, to ask if I like to
have a Display or if I am a non-GUI headless application


Demonstration:


    <yourNamehere>Startup start



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 25 Apr 2024 17:44:13 GMT