Scala Monitoring and Control System API
com.lafros.macs.util

class SubjectObserver

[source: com/lafros/macs/util/SubjectObserver.scala]

abstract class SubjectObserver
extends AnyRef

Type-safe impl'n of the observer pattern.

This code is derived from an example given in the paper entitled Scalable Component Abstractions by Martin Odersky and Matthias Zenger.

Author
Rob Dickens
Type Summary
abstract type ObserverType <: Observer
the actual Observer subclass.
abstract type SubjectType <: Subject
the actual Subject subclass.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Class Summary
trait Observer extends AnyRef
to be extended by observers.
trait Subject extends AnyRef
to be extended by the subject.
Type Details
abstract type SubjectType <: Subject
the actual Subject subclass.

abstract type ObserverType <: Observer
the actual Observer subclass.


Copyright 2009 Latterfrosken Software Development Limited