Dear Smaltalkers,
I published a new Sport portability library which has now a portable support for image startup and shutdown tasks. This is useful for any cleanup you want to o before image is quit and for any work after image is started. For instance, a Swazoo web server will restart all its websites automatically after image start with help of those Sport startup methods.
See class SpEnvironment, class methods in 'image startup/shutdown'
Usage example:
- SpEnvironment addImageStartupTask: [anObject restart] for: anObject - SpEnvironment addImageShutdownTask: [anObject stop] for: anObject
You can find it on SqueakSource and Cincom public repository for VW.
Best regards Janko
Janko,
Thanks for that.
In future, I would like to ask that extensions to Sport be discussed on comp.lang.smalltalk before they are added in and released.
We are reaching the point where any change to Sport will affect many people and will require action from a number of other Sport developers to keep the Sport API consistently implemented.
Of course discussing things up front may slow the speed with which Sport can change, but perhaps that is a good thing at this point.
All the best, Bruce
On 06/09/07, Janko Mivšek janko.mivsek@eranova.si wrote:
Dear Smaltalkers,
I published a new Sport portability library which has now a portable support for image startup and shutdown tasks. This is useful for any cleanup you want to o before image is quit and for any work after image is started. For instance, a Swazoo web server will restart all its websites automatically after image start with help of those Sport startup methods.
See class SpEnvironment, class methods in 'image startup/shutdown'
Usage example:
- SpEnvironment addImageStartupTask: [anObject restart] for: anObject
- SpEnvironment addImageShutdownTask: [anObject stop] for: anObject
You can find it on SqueakSource and Cincom public repository for VW.
Best regards Janko
-- Janko Mivšek AIDA/Web Smalltalk Web Application Server http://www.aidaweb.si
squeak-dev@lists.squeakfoundation.org